1

Topic: TXMLDocument parsing

Kind day, prompt as  the document when distinctions in titles  are not present, only in attributes

<? xml version = ' 1.0 ' encoding = ' windows-1251 '?>
<EFO type = "REQUEST>
<MOST_NSI num = "1">
<Name> F62 </a name>
<Version 201801> </the version>
<>
<Passport>
<The accessory Number = "1" Name = " [6-1]" Type = "L" Implementations = "1" Part = "0" Length = "5" Compulsion = "1" Reference manual = "0" TipSpravochnika = "0"> the territory Code </a requisite>
</the passport>
</opisaniesreza>
</MOST_NSI num = "1">
<MOST_NSI num = "1">
<Name> F13 </a name>
<Version 201802> </the version>
<>
<Passport>
<The accessory Number = "1" Name = " [6-1]" Type = "L" Implementations = "1" Part = "0" Length = "5" Compulsion = "1" Reference manual = "0" TipSpravochnika = "0"> the territory Code </a requisite>
</the passport>
</opisaniesreza>
</MOST_NSI num = "2">
</EFO>

I need to break the unit on  the NAME and to consider the Passport for each object, suggest an idea, and something I brake

2

Re: TXMLDocument parsing

To bypass  in a cycle.

3

Re: TXMLDocument parsing

rgreat;
Interests as  on the unit

<EFO type = "REQUEST>
<MOST_NSI num = "1">

How to rise in  by name it is clear, but at me differ  only on attribute
smile

4

Re: TXMLDocument parsing

Look  type childs or Items. Also bypass search.

5

Re: TXMLDocument parsing

All the same I do not understand

<EFO type = "REQUEST>
<MOST_NSI num = "1">
<Name> F62 </a name>
<Version 201801> </the version>
<>
<Passport>
<The accessory Number = "1" Name = " [6-1]" Type = "L" Implementations = "1" Part = "0" Length = "5" Compulsion = "1" Reference manual = "0" TipSpravochnika = "0"> the territory Code </a requisite>
</the passport>
</opisaniesreza>
</MOST_NSI>
<MOST_NSI num = "2">
<Name> F13 </a name>
<Version 201802> </the version>
<>
<Passport>
<The accessory Number = "1" Name = " [6-1]" Type = "L" Implementations = "1" Part = "0" Length = "5" Compulsion = "1" Reference manual = "0" TipSpravochnika = "0"> the territory Code </a requisite>
</the passport>
</opisaniesreza>
</MOST_NSI>
</EFO>

I begin  as to me  on  MOST_NSI with attribute 2?

6

Re: TXMLDocument parsing

I will make for you the code for 100 dollars on paypal.

7

Re: TXMLDocument parsing

To sort out as a normal array and there already to search for coincidence on necessary id:

for i: = 0 to RootNode. ChildNodes [' array '].ChildNodes. Count - 1 do
Memo. Lines. Add (RootNode. ChildNodes [' array '].ChildNodes [i].Text);

is more detailed

8

Re: TXMLDocument parsing

rgreat,
If you the girl, I can employ you for 100 dollars, truth not on the code

9

Re: TXMLDocument parsing

comtehno;
Good luck in learning of bases of programming.

10

Re: TXMLDocument parsing

rgreat;
Thanks - already understood, with bases understood for a long time already smile
Excuse for roughness, but for a long time I work in other language - it was necessary on  to complete the old project 5 prescription, wanted simply helped - it would not be desirable to understand

11

Re: TXMLDocument parsing

comtehno;
You open source codes TXMLDocument and you read what at it there are properties/methods to apply in a cycle
If you know that such cycles - are not present a subject for a question
If not  to answer it is useless