Results 1 to 3 of 3

Thread: XML filtered

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

    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:
    <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!
    Last edited by Freddie; 06-01-2007 at 01:57 PM.

  2. #2
    levent Guest


    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
    Rep Power


    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: -- 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, 10: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