Search found 12 matches

by Alanick
14 Nov 2022 17:18
Forum: DOS Batch Forum
Topic: [Destructive, Use Caution] Copy tags and its child elements from specific XML schema
Replies: 23
Views: 11833

Re: Copy tags and its child elements from specific XML schema

When you posted this, you said: "now the entire library_geometries tag is corrupt". Because you said now , I assumed that it is a new error that havn't happened before... You didn't specified in which data file the error happened, nor described the error... At the time of writing that specific post...
by Alanick
11 Nov 2022 22:50
Forum: DOS Batch Forum
Topic: [Destructive, Use Caution] Copy tags and its child elements from specific XML schema
Replies: 23
Views: 11833

Re: Copy tags and its child elements from specific XML schema

I'm sorry you gave up on solving this task... My apologies, for not getting back online quicker with a better replay, i surely did not give up on this project, nope, hehe. Forgive my inexperienced nature in dealing with these kind of matters, i never thought it can become so twisted and tangled i m...
by Alanick
10 Nov 2022 20:28
Forum: DOS Batch Forum
Topic: [Destructive, Use Caution] Copy tags and its child elements from specific XML schema
Replies: 23
Views: 11833

Re: Copy tags and its child elements from specific XML schema

Test it and report the result... I am lost for words, i am beginning to believe now all the things i have read up until I've reached this forum, it seems it will be impossible to achieve this via dos batch, now the entire library_geometries tag is corrupt, the opening/closing tags of its child elem...
by Alanick
08 Nov 2022 17:58
Forum: DOS Batch Forum
Topic: [Destructive, Use Caution] Copy tags and its child elements from specific XML schema
Replies: 23
Views: 11833

Re: Copy tags and its child elements from specific XML schema

(I think it is a <library_geometries> one) That is correct. the input FILE where such a TAG appears for the first time. The first culprit where it seems to all start is file 0104.xml , (oddly enough the file is of course correct, during merging it gets corrupt) . Then, do a test with such a file an...
by Alanick
07 Nov 2022 18:59
Forum: DOS Batch Forum
Topic: [Destructive, Use Caution] Copy tags and its child elements from specific XML schema
Replies: 23
Views: 11833

Re: Copy tags and its child elements from specific XML schema

I modified the method in order to completely process each file, one by one. In this way, the number of files should not affect the task, although the total elapsed time may be larger than before... Thank you for the update. Hm, for some odd reason, on some of the <float_array> elements have the fol...
by Alanick
04 Nov 2022 11:38
Forum: DOS Batch Forum
Topic: [Destructive, Use Caution] Copy tags and its child elements from specific XML schema
Replies: 23
Views: 11833

Re: Copy tags and its child elemnts from specific XML schema

Here is an example for how to read and process xml using jscript (in the hybrid "xslt.bat") in a safe way: https://www.dostips.com/forum/viewtopic.php?p=32941#p32941 . Thank you, unfortunately for me i have no clue how to use that for my situation described initially, yet alone modify it for my pur...
by Alanick
03 Nov 2022 14:08
Forum: DOS Batch Forum
Topic: [Destructive, Use Caution] Copy tags and its child elements from specific XML schema
Replies: 23
Views: 11833

Re: Copy tags and its child elemnts from specific XML schema

Thank you for the updated version. Based on the 3 XMLs i provided as sample above, i can clearly confirm, the output.txt is no longer corrupt, everything looks as should at first glance, will continue to test further, also, will try next step to batch an entire project that holds hundreds of XMLs, t...
by Alanick
02 Nov 2022 20:26
Forum: DOS Batch Forum
Topic: [Destructive, Use Caution] Copy tags and its child elements from specific XML schema
Replies: 23
Views: 11833

Re: Copy tags and its child elemnts from specific XML schema

After testing the generated output.txt it failed and then i looked at it closely in a text editor, based on the batch above, at this very moment ONLY the <float_array id=" ... lines that go beyond 8192 characters are missing, it doesn't create empty lines, just as you said, they are NOT copied, with...
by Alanick
01 Nov 2022 20:23
Forum: DOS Batch Forum
Topic: [Destructive, Use Caution] Copy tags and its child elements from specific XML schema
Replies: 23
Views: 11833

Re: Copy tags and its child elemnts from specific XML schema

The task you requested is complicated and complex; Yes, I discovered that as soon as i started doing research in achieving this task, boy... if i knew. however, you have not posted a single specification that could help us to develop such a solution. I was not aware such specifications would be nee...
by Alanick
30 Oct 2022 11:24
Forum: DOS Batch Forum
Topic: [Destructive, Use Caution] Copy tags and its child elements from specific XML schema
Replies: 23
Views: 11833

Re: Copy tags and its child elemnts from specific XML schema

aGerman wrote:
30 Oct 2022 08:54
PowerShell, VBScript, JScript for example support the XML DOM to process XML data in a proper way, while Batch does not.
Alright, i have never used or have any knowledge about those examples, happen to have anything that would work for my given example at all?
by Alanick
30 Oct 2022 08:08
Forum: DOS Batch Forum
Topic: [Destructive, Use Caution] Copy tags and its child elements from specific XML schema
Replies: 23
Views: 11833

Re: Copy tags and its child elemnts from specific XML schema

There is no way for me to use another language for support, these are original OpenCOLLADA XML format assets, its how they are, very old assets i might add, i am stuck with them, and i am trying to do the task above, to simplify my workflow so later on i can have a proper way of dealing with them. U...
by Alanick
29 Oct 2022 14:48
Forum: DOS Batch Forum
Topic: [Destructive, Use Caution] Copy tags and its child elements from specific XML schema
Replies: 23
Views: 11833

[Destructive, Use Caution] Copy tags and its child elements from specific XML schema

Hello everyone, new here, Based on the following link: https://stackoverflow.com/a/21789983 I can successfully copy each and every line between two XML tags with its child elements to a new file and it works as expected, speed is very low though, but it is what it is. The current batch copied from t...