11/4/2019 Xml Batch File
Hello everybody, I need to parse a lot of line like this XML to extract only few row to obtain this row DISK='aaaaa';PATH='aaa0000/aaa.uuuxxx.pdf.ppp';'Data xxxxxxxxxx' VALUE='2000-01-01 00:00:00.0;'uuuuuu' VALUE='abcdefghilmnoprz' or also like this aaaaa;aaa0000/aaa.uuuxxx.pdf.ppp;2000-01-01 00:00:00.0;abcdefghilmnoprz Regards Dario. And thousands other code I need match (from a list) this value (abcdefghilmnoprz) find in this row FIELD NAME='uuuuuu' VALUE='abcdefghilmnoprz' TYPE='STRING' / and write a line with the value and this other fields TYPE='ABC' DISK='aaaaa' PATH='aaa0000/aaa.uuuxxx.pdf.ppp' 'Data xxxxxxxxxx' VALUE='2000-01-01 00:00:00.0' Regards Dario.
![]() ![]()
Batch is not even suitable for parsing files, let alone for parsing XML. Ideally you should use XML processing tools. Or a programming language that support XML api/libraries for processing XML specifically. Here's an example in native vbscript. If RTP is not possible, jobs can be posted via batch files uploaded via FTP. In this approach, the client creates an XML file containing one or more jobs for a.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |