> On Mon, Nov 26, 2012 at 5:55 PM, Simon Giddings <[email protected]> 
> wrote:
> I have a series of custom xml data files that I need to create.
> I would like to tell eclipse what its format is so that when I do a
> CTRL+SPACE, it will give me the possible node or attribute options.
>
> Is this possible ?
> If so, how do I go about this ?

Yes, it is possible - you just need to write XSD files to describe
your formats.  Eclipse has (or had) an XSD editor - I used it a couple
of times last year although I don't see it in my current Eclipse
installation (I've upgraded since).  At any rate, XSDs are like XMLs
themselves so any XML editor should do.

Once you have your XSD, you just point to it using the
xsi:schemaLocation attribute of the toplevel element of your XML.
Eclipse then starts to understand your XMLs, it will highlight errors
and give you suggestions on ctrl+space.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to