Desktop version

Main > Forum > 1C:Enterprise Platform > Studying 1C:Enterprise platform > Content read via XDTO data object

Forum

Search UsersRules
Content read via XDTO data object
#1
Interested
Points:: 0
Joined:: Apr 5, 2012

Hi,

We have an xml in whitch ther is an attribute and __content value of exactly node.

for example:

Code
        <cbc:TaxAmount currencyID="TRY">320.00</cbc:TaxAmount>


When we read this xml via
Code
Obje = XDTOFactory.ReadXML(xml);

how can we get value of that TaxAmount node?

As detail example we attached file. You may analyze xml file (/TaxTotal/TaxAmount).

Using XMLReader object we can read it, but we don't want read each node one by one. As we can read the whole xml object via XDTOfactory, we wonder is there possibility to read the content of each node?

Profile
#2
Interested
Points:: 0
Joined:: Apr 5, 2012

Solved it thanks.

To get content of node we should use:

Code
DataObject.Sequence().GetText(0)

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.