Content read via XDTO data object

Understanding basics of 1C:Enterprise platform. To start working with 1C:Enterprise platform visit Getting started page

#1
People who like this:0Yes/0No
Interested
Rating: 27
Joined: Apr 5, 2012
Company: 1TÇ Şirketi - Merv Bilgi İşlem Otomasyonu Yazılım Ltd. Şti.

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?

 
#2
People who like this:1Yes/0No
Interested
Rating: 27
Joined: Apr 5, 2012
Company: 1TÇ Şirketi - Merv Bilgi İşlem Otomasyonu Yazılım Ltd. Şti.

Solved it thanks.

To get content of node we should use:

Code
DataObject.Sequence().GetText(0)

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.