Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

using XPATH on XSD schema to get valid XML tags

Thread view: 
Kev - 22 Dec 2005 16:09 GMT
Hi - I'm writing an eclipse editor plug in for a proprietary parsing
language.  The parsing language takes XML as an input and converts it
into legacy host format.  I'm trying to figure out how to use xml
schema/validator and or XPATH to get field autocompletion for the
eclipse editor plugin.

The parse language references fields in a vaguely XPATH manner, it
looks like:

[toplevel.secondlevel.dataelement]

A typical XML input for this would be:

<toplevel>
 <secondlevel>
   <dataelement>myData</dataElement>
 </secondlevel>
</toplevel>

- and the output would be "myData". There is an XSD file defining the
XML structure.

Anyway - getting to my query...

I would like to get the plugin to prompt the user for valid XML tags.
e.g. They type in "toplevel." and eclipse prompts "secondlevel" in the
same way it prompts for java method name autocompletion.

So, given an XSD file and an XPATH of "toplevel", can any one suggest
some ideas for how I can get the list of what other valid paths there
are  ?

Thanks,
Kevin.
csheppard91@gmail.com - 22 Dec 2005 16:36 GMT
Come to my forum to get help: http://www.wizardsolutionsusa.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.