java - Parsing an XSD to list elements -


I'm trying to type and documentation.

I looked at XSOM, SACPERSER, JARSSE, JASPSPP - all of which are easy to read an XML and read nodes. It is difficult to read an XSD without the element names (to get a list of all element names). Parser. Pursue I work mostly fine with Libs (there is a well made xml as an XSD) but I'm not able to get more than that (to remove all element names) I am

Am I missing anything? Anyone have any experience of similar problem?

The following is a sample xsd:

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Xs: schema attribute default = "ineligible" elementfirm default = "qualified" xmlns: xs = "http://www.w3.org/2001/XMLSchema" xmlns = "http://abc.mycompany.com/dto/address" TargetNamespace = "http://abc.mycompany.com/sdo/address" & gt; & Lt; X: complex type name = "address" & gt; & Lt; XS: Sequence & gt; & Lt; Xs: element name = "address 1" min orchars = "0" & ​​gt; & Lt; XS: Annotation & gt; & Lt; Xs: Documentation & gt; USPS standardized address: building number, street name, apartment / suite number, and directions (e.g., NE, SE, NW, SW). & Lt; / X: Documentation & gt; & Lt; / XS: Annotation & gt; & Lt; XS: simpleType & gt; & Lt; Xs: restriction base = "x: generalized string" & gt; & Lt; Xs: max lump value = "100" /> & Lt; / XS: Ban & gt; & Lt; / XS: simpleType & gt; & Lt; / XS: element & gt; & Lt; Xs: element name = "address 2" min octar = "0" & ​​gt; & Lt; XS: Annotation & gt; & Lt; Xs: Documentation & gt; Extra area to wrap long straps & Lt; / X: Documentation & gt; & Lt; / XS: Annotation & gt; & Lt; XS: simpleType & gt; & Lt; Xs: restriction base = "x: generalized string" & gt; & Lt; Xs: max lump value = "100" /> & Lt; / XS: Ban & gt; & Lt; / XS: simpleType & gt; & Lt; / XS: element & gt; & Lt; Xs: element name = "city" minOccurs = "0" & ​​gt; & Lt; XS: Annotation & gt; & Lt; Xs: Documentation & gt; Name of city, city or village & Lt; / X: Documentation & gt; & Lt; / XS: Annotation & gt; & Lt; XS: simpleType & gt; & Lt; Xs: restriction base = "x: generalized string" & gt; & Lt; Xs: max lump value = "26" /> & Lt; / XS: Ban & gt; & Lt; / XS: simpleType & gt; & Lt; / XS: element & gt; & Lt; Xs: element name = "state" type = "x: generalized string" minOccurs = "0" & ​​gt; & Lt; XS: Annotation & gt; & Lt; Xs: Documentation & gt; A pick up list of short letters, which represent American states, military post offices, US patrons and Canadian provinces. & Lt; / XS: Documentation & gt; & Lt; / XS: Annotation & gt; & Lt; / XS: element & gt; & Lt; Xs: element name = "zipcode" type = "x: generalized string" minOccurs = "0" & ​​gt; & Lt; XS: Annotation & gt; & Lt; Xs: Documentation & gt; The first 5 digits of the 9-digit (zip + 4) zip code are used to detect a US address geographically. & Lt; / Xs: Documentation & gt; & Lt; / XS: Annotation & gt; & Lt; / XS: element & gt; & Lt; / XS: sequence & gt; & Lt; / XS: complexType & gt; & Lt; / XS: Schema & gt;  

It should be a parser that is configured to handle namespace.

You can also use XSL -T to match "Xs: Element" and remove such names.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -