Re: DB in XML

From: Martin SChukrazy (prak24_at_hotmail.com)
Date: 03/04/04


Date: Wed, 3 Mar 2004 22:35:48 -0500

ah have you tried using XPath. or even DOM. Since you provide the user the
search criterion you can create the XPath to get the root. You can also try
creating an XSLT to check for this...

Martin

"vibor" <vibor.cipan@public.srce.hr> wrote in message
news:17594bb7.0403021352.63955e1@posting.google.com...
> Hello
>
> Let's say i have XML document of this type:
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <CONTENT>
> <VIDEO>
> <NAME>Crystal growth</NAME>
> <DURATION>13</DURATION>
> <DESCRIPTION>This video shows...</DECRIPTION>
> <URL>http://croeos.net/video1>
> </VIDEO>
> <VIDEO>
> <NAME>Crystal growth2</NAME>
> <DURATION>23</DURATION>
> <DESCRIPTION>Exapmle of something where somewhere</DECRIPTION>
> <URL>
http://croeos.net/vibor.html>
> </VIDEO>
> </CONTENT>
>
> How can i search this document? What I want is... To make that user
> can select what he want to search for (Name, duration, description,
> url or all of that) for some word, let's say: "Crystal". Then i want
> output in HTML in wich will be this informations:
> Records found: 2
> Record 1: Crystal growth
> URL:
http://croeos.net/video1
>
> ....
> and so on for all results that match .
>
> My idea is to make XML dazabase and to access it and serach it using
> VB or trough browser.
>
> Thanks in advance



Relevant Pages

  • Using XPath to copy nodes
    ... private Element getAnswers(Element root, String queID) throws ... XPath xpath = factory.newXPath; ... //Design the query to search through the XML Document ...
    (comp.lang.java.programmer)
  • Using XPath to copy nodes
    ... private Element getAnswers(Element root, String queID) throws ... XPath xpath = factory.newXPath; ... //Design the query to search through the XML Document ...
    (comp.lang.java.programmer)
  • Re: Returning "nearest in document" matches using XPath
    ... Nick Leverton escribió: ... > currently using the following XPath: ... I dont see this reflected in the XML document. ... I want to find the left-most one in the above diagram, nearest to the root ...
    (comp.text.xml)
  • Re: Returning "nearest in document" matches using XPath
    ... What do you mean by "nearest"? ... I dont see this reflected in the XML document. ... currently using the following XPath: ... only the node which matches nearest the root of the XML document. ...
    (comp.text.xml)
  • Returning "nearest in document" matches using XPath
    ... so there is only one "nearest" IP address corresponding to each ID. ... currently using the following XPath: ... only the node which matches nearest the root of the XML document. ... Querying from a sub-node: ...
    (comp.text.xml)

Loading