to retrieve the valuse of cnu element i tried the following code
Code:
BUT my problem is when i print the value
iam getting null .
how can i retrieve the dataaa
thank u
sreee
Last edited by vino; 04-23-2007 at 03:05 AM..
Reason: Please put your code within the codetags.
I think you want to use xmlGetProp(cur, "version") instead of xmlNodeListGetString(). I think you want to be checking for "cnu" instead of "cnu " also.
Hi,
Using libxml++-2.6, is it possible to change the xsi:noNamespaceSchemaLocation in the root element node?
e.g.
from
<myxml xsi:noNamespaceSchemaLocation="ABC.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
:
:
</myxml>
to
<myxml... (1 Reply)
Hi,
I am using xml::libxml.
Here is the code.
my $parser = XML::LibXML->new();
my $xmldoc = $parser->parse_file ("file.xml") || die("Could not parse config xml file\n");
my $root = $xmldoc->getDocumentElement()|| die("Could not get Document Element \n");
$id="121313131"; # For example... (2 Replies)
Hi
I wrote the follow code:
this->domParser = new xmlpp::DomParser();
this->domParser->set_validate(true);
this->domParser->parse_file(*this->xmlFileName);
this->doc = this->domParser->get_document();
xmlpp::Node* rootNode = this->doc->get_root_node();
xmlpp::Node::NodeList list =... (0 Replies)
I've just started using libxml in c++, so far im able to parse a xml string. now i would like to replace <cms:CMSContent id="leftNav" /> with the string "left" and write the new xml out to cout; any ideas?
string.xml
<html xmlns:cms="http://www.test.com">
<body>
<cms:CMSContent id="leftNav"... (1 Reply)