Jump to content

Recommended Posts

Posted

Hi,

I have a XML file which contains some values with sapace for a node. When i am trying to read the valeu from VC++ i am getting tha values without space. How to read the copleted valure with out it getting trimed.

Example of XML file:

<Parameter>

<ParameterName>UserOptions/OperatingSystemSettings/Password</ParameterName>

<ParameterValue> sudhir </ParameterValue>

</Parameter>

In above xml observ space at the begining and end of sudhir value. Below is the code i have to read the value.

hr = ((MSXML2::IXMLDOMElement*)objXmlNode)->getElementsByTagName(strParameterValueNode)->Getitem(0)->get_text(&strParameterValue);

Please let me know if any one knwos how to read teh complet values

Regards,

Sudhir


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...