I have searched in forums, tutorials and manual but I couldn´t find anything about xml filtered.
I have found an API calls DOM, but
I give you an example, maybe you can help me:
I have the follow XML code:
<ROW Name="Marty" Surname="Crespi"
<ROW Name="Pepito" Surname="Ape Pepito"
<ROW Name="Pepito" Surname="Ape Pepito2"
I need something that allows me manipulate this xml:
"Search information about an attribute: search from "surname" the string "crespi"
Filter a data from an attribute, for example: returns in an other xml, the rows that match with the conditions in the filter, for example Name="Pepito".
well, and then can insert new rows, modify, and delete them
Thank you very much!
Freddie, you can use XPath. Maybe there are libraries, anyway is in J2SE 1.5:
javax.xml.xpath (Java 2 Platform SE 5.0)
If you have 1.4 version, you don´t find in libraries of java
I recommend this:
ONJava.com -- Parsing an XML Document with XPath
A tutorial of expressions XPath (XPath is independent of Java):
more information about XPath and Java, when JDK 1.5 doesn´t exist:
Effective XML processing with DOM and XPath in Java
In this times, they use Xalan as library of XPath, and it needs Xerces libraries
Xalan-Java Version 2.7.0