[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Comments...
James & Sue Ann Birchfield wrote:
>
> Actually no. It worked out of the box.
> I had to do some re-writing of the jaco
> and the .bashrc scripts to run on a in box,
> but only out of necessity...:) Worked great
> on my linux platform. I am testing it with
> Solaris and jdk1.2.2.
>
> I will probably send this to the list, but I am
> runnin ginto a wall using XPATH. I am sending
> the following key to accompany the message:
>
> <key oid='beacon' contentMime='text/plain'>
> <beacon>
> <message>
> <system>harmony</system>
> </message>
> </beacon>
> </key>
>
> Now to subscribe to this message vi XPATH, I am trying
> this:
> <key oid='beacon'contentMime='text/plain'>
> //message[system='harmony']
> </key>
>
> Does that look right? Nothing to do with xmlBlaster,
> just my lack of experience with XPATH.
>
The syntax is correct. Here is how i test such stuff:
create a file Test.xml
---------------------
<?xml version='1.0' encoding='ISO-8859-1' ?>
<key oid='beacon' contentMime='text/plain'>
<beacon>
<message>
<system>harmony</system>
</message>
</beacon>
</key>
---------------------
and test it:
java DomQueryTest Test.xml "//message[system='harmony']"
voila:
Feb 16, 2000 1:07:31 PM INFO : [DomQueryTester] Query time [ 455
millis ]
<message>
<system>harmony</system>
</message>
Feb 16, 2000 1:07:31 PM INFO : [DomQueryTester] Found key oid="beacon"
xmlBlaster/demo/queryXML/DomQueryTest.java is used for this
command line query.
Good luck
Marcel
--
Marcel Ruff
ruff at swand.lake.de
http://www.lake.de/home/lake/swand/
http://www.xmlBlaster.org