Results 1 to 3 of 3

Thread: XML filtered

  1. #1
    Freddie is offline Member
    Join Date
    May 2007
    Posts
    41
    Rep Power
    0

    Default XML filtered

    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:
    <XML>
    <ROW Name="Marty" Surname="Crespi"
    Email="crespi.marty@gmail.com"/>
    <ROW Name="Pepito" Surname="Ape Pepito"
    Email="pepito@suemail.com.co"/>
    <ROW Name="Pepito" Surname="Ape Pepito2"
    Email="pepito2@suemail.com"/>
    </XML>
    I need something that allows me manipulate this xml:
    example
    "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!
    Last edited by Freddie; 06-01-2007 at 02:57 PM.

  2. #2
    levent Guest

    Default

    Please read the following tutorial. It will help you:

    Parsing, Modifying, and outputting XML Documents with Java

  3. #3
    Nick15 is offline Member
    Join Date
    May 2007
    Posts
    38
    Rep Power
    0

    Default

    hello
    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&#180;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):

    XPath Tutorial

    more information about XPath and Java, when JDK 1.5 doesn&#180;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

    good luck

Similar Threads

  1. Using Filtered Streams
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-12-2007, 11:30 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •