Reading a large-single XML line to a variable using Batch Script -


I have an XML file that has only one line, but the problem is that the line is too big, so it seems I can not store in one variable

What do I want,

the tag1, tag2 ..... tag 9 00, i have a segment in each row

Tag 2

Tag 3

...... P> Tag 9 00

Do not attempt to do this using native batch. It will be very difficult, and any solution will be very slow.

The problem can not read the original batch lines & gt; 8k, and batch are not a good way to read partial lines

is a method that creates a test file in which size & gt; = A file containing a single repeating character is comparing a binary file ( FC / B ) and the results are described on the basis of the character expressed as hex code. Compared to this, it is a bit more complicated, but I do not think you want to go there.

The only other option is to use the SET / P to read in 1021 characters at once, and then the paras and things together but it is unhappy, and then, I do not feel worth trying.

If you want to use a native scripting language, then I suggest VBScript or JScript. (Maybe PowerShell, but I do not know much about its capabilities).

You can download a Unix text processing tool such as sed which is ported to Windows.

I do not do much with Don XML, but I believe that specially for XML, there is a free tool that will make your job much easier.

Actually, leaving batch! (It's coming with someone whose hobby is solving problems with batch)

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -