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:[EMAIL PROTECTED]
Sent: 14. marraskuuta 2005 9:39
To: [email protected]
Cc: [email protected]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to