Thursday 29 August 2013

JAXB or SAX parsing

JAXB or SAX parsing

some one have any solution for this?
I am trying to parse the following XML to read the values using Java
beans. it doesnt matter which parsing technique it is.
XML Here:
<DocumentInfo>
<Document>
<class> xyz</class>
<uid> xyz</uid>
<Pass>
xyz
</pass>
<credit />
<DocClass>xyz </DocClass>
<Properties>
<Property>
<Name>name</Name>
<Value>value</Value>
</Property>
<Property>
<Name>name</Name>
<Value>value</Value>
</Property>
<Property>
<Name>name</Name>
<Value>value</Value>
</Property>
</Properties>
<Content>
<Data>abc</Data>
<Type>txt</Type>
</Content>
</Document>
</DocumentInfo>
Thanks in advance.

No comments:

Post a Comment