File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes checking valid data input using DOM/XMLBeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "checking valid data input using DOM/XMLBeans" Watch "checking valid data input using DOM/XMLBeans" New topic
Author

checking valid data input using DOM/XMLBeans

ahsan mir
Ranch Hand

Joined: Jul 17, 2006
Posts: 42
I have the following xml document(a fragment of it).I want to check the SampTop element i Insert is ,its value is greater than the last similar element (in the list).If it is it shall only then insert. Any idea on how to do it. I am using XMLBeans and/or DOM(JAXP). Has anyone tried data insertion to an xml doc with xmlbeans?
*******************************************************
<Information>

<Samp>
<sampTop>1.00</sampTop>
<sampRef>2</sampRef>
<sampType>B</sampType>
<sampBase>1.30</sampBase>

</Samp>

<Samp>
<sampTop>2.50</sampTop>
<sampRef>3</sampRef>
<sampType>B</sampType>
<sampBase>1.30</sampBase>
</Samp>
<Samp>
new sampTop and other elements
</Samp>
</Information>

**************************************************************************

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: checking valid data input using DOM/XMLBeans
 
Similar Threads
get data from Document object
Need help in modifying XML text value using DOm parser
pls help
Add Processing Instruction to XML using XmlBeans
API for Reading XML Schema