[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
wanting advice on finding out the root element in a w3c schema
- From: ravi kiran <krkiran@c...>
- To: xml-dev@l...
- Date: Thu, 30 Aug 2001 10:05:34 +0530
hello all
i need a advice....................i am parsing a
xml schema using java and trying to find out the root element in xml
schema.................it is working quite well for almost 95% for all
schemas............the problem is for some schemas some global elements are not
referred in the schema , they r just defined and not referred
anywhere..........so when parsing the global elements which r not referred
anywhere are coming as root elements...........as far as i know any schema would
have only one root element, but it is not the case here........i am getting
multiple root elements............should i display tree structure for each root
element i am getting........i have referred schema part 0,1,2.........i have not
found ........it has mentioned only about 2 rules defining global elements such
as (1) the element refer should not be placed int the global element and (2) min
occurs and max occors(ranges) should not be placed in defining the global
element...........so please tell me is there any logic to find out the root
element other than the logic i am using.............i am not able cross this
limitation as this is the bootleneck , b'cos the schema should reflect the xml
document, and validating the xml document should be easier..............i think
who is reading this got the point...............if not mail me back without
hesitation...............
and also one more important thing i am not able to
get schema examples on the net............i got only one site http://www.xfront.com........... can u
please suggest some sites so that i can check that schema
examples................with my logic..............
thanks in advance
|
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|
Stylus Studio has published XML-DEV in RSS and ATOM formats,
enabling users to easily subcribe to the list from their preferred news reader application.
|
Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website.
they were not included by the author in the initial post. To view the content without the Sponsor Links please
click here.
|
|