[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-c-dev
Subject:    RE: XPATH Support in Xerces-C++
From:       "Venkata Ramesh Balabhadruni XX (JO/LMF)" <venkata.ramesh.xx.balabhadruni () ericss
Date:       2005-11-14 14:07:15
Message-ID: D9CDB3CE7A25B44EB4B20D56661840846B3B8C () esealmw114 ! eemea ! ericsson ! se
[Download RAW message or body]

Hi,

I tried to find if we have API's in pathan 1.2 version, to get/set/delete a \
particular attribute in DOM by specifying the location path and attribute name(as \
strings). Please see below example and comment.

I have xml document with the following structure:

<?xml version="1.0" encoding="ISO-8859-1"?>
<ABCD>
  <MODULE LIBNAME="module1.dll" VERSION="1">
  <RUN NAME="Module1" CREATENAME="Module1" THREADNAME="Module1" ENABLED="false" \
LOGOUTPUT="+" LOGBEHAVIOUR="erase"   LOGLEVEL="Error+Fatal" LOGOUTPUTNAME="abc.log"> \
<!--CONF testMode="2"></CONF-->  </RUN>
  </MODULE>

  <MODULE LIBNAME="module2.dll" VERSION="1">
  <RUN NAME="Module2" LIBNAME="Module2" CREATENAME="Module2" THREADNAME="Module2" \
ENABLED="true" LOGOUTPUT="+" LOGBEHAVIOUR="erase" LOGLEVEL="Error+Fatal" \
LOGOUTPUTNAME="xyz.log"/>   </MODULE>
</ABCD>

I am using xerces-c++ 2.1 version. I am planning to move to xerces-c++ 2.3 and pathan \
1.2 for xpath support. I have the xml parsed tree in the DOM. Now, Can I get \
"CREATENAME attribute value of 2nd Module" by specifying the location path \
"/ABCD/MODULE/RUN[2]" and the attribute name "CREATENAME" ?

Thanks & Regards,
Ramesh.


-----Original Message-----
From: Kris Dudkiewicz [mailto:kris@orad.pl]
Sent: 14. marraskuuta 2005 9:39
To: c-dev@xerces.apache.org
Cc: xerces-c-dev@xml.apache.org
Subject: Re: XPATH Support in Xerces-C++


Venkata Ramesh Balabhadruni XX (JO/LMF) wrote:

> Hi,
> 
> I am not sure whether this is the right place to raise XPATH support question. if I \
> am sending to a wrong forum, please redirect me to the right forum. Are we \
> supporting XPATH in Xerces-C++ ? In which version ? I can not see the code in \
> v2.4.0 version or v2.7.0 version. If we sre supporting, can you please show me some \
> examples(in the internet) on how to use the support ? 
> Thanks & Regards,
> Ramesh.
> 
> 
> 
> 

You can fuind it in FAQ (xerces-c-src_2_7_0/doc/html/faq-other.html#faq-9):

 Does Xerces-C++ support XPath?       
           
    

No. The Xerces-C++ 2.7.0 only has partial XPath implementation for the 
purposes of handling Schema identity constraints. For full XPath 
support, you can refer Apache Xalan C++ or other Open Source Projects 
like Pathan.

Best regards,
Kris.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic