How to handle colon in xml Tag name

Apr 13 2009 3:13 AM

Hi..

<?xml version="1.0" ?>

     - <uevol:ICD doc-ref="UEVOL-0226-1E" from="ZC" to="ATS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="ISIS ../uevol-ICD-Doc.xsd" xmlns:uevol="ISIS">
   - <uevol:constants>
  <uevol:constant name="AP_status_request_period" value="1" description="Message "Train AP status Request" period" />
 
c      this is partial xml file.. the tag name and element name it contains prefixes, when i load this file using xml Document and use Xpath query to get "uevol:constant name="AP_status_request_period"" or any other Attribute or Tag it self it is giving XpathException  "Namespace Manager or XsltContext needed. This query has a prefix, variable, or user-defined function."
 
   here how i have to provide Namespace manager to solve this problem.
 
   Thanks in Advance
   Regards
   Navanath Mulge
 
 
 

Answers (2)