cancel
Showing results for 
Search instead for 
Did you mean: 

Generate a XML File in WAS folder

inigo_sacramento
Participant
0 Kudos
42

Hi.

Once BPM ends, i want to get a XML file with some data.

The problem is that when i go to AL11 to watch this file, i get the entire XML in one row :

<p2:MT_SRI_RESPUESTA xmlns:p2="http://dga.es/INTERFASE"><cabecera><FICHERO>SRI01140306D411001</FICHERO><NAME>JOHN</NAME> ....

i want to get it this way ...

<p2:MT_SRI_RESPUESTA xlns:p2="http://dga.es/INTERFASE">

<cabecera>

<FICHERO>SRI01140306D411001</FICHERO>

<NAME>JOHN</NAME>

.

.

.

How can i do that?

Regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

manish_bhalla2
Contributor
0 Kudos

Hi Inigo,

If you view the same file in another application (that has an XML parser), it will appear the way you want it, for example in Internet Explorer.

Is there any particular reason why you need it in that format?

Cheers

Manish

inigo_sacramento
Participant
0 Kudos

Yes Manish.

The reason is that when i generate the XML, i can only have 256 chars per row, so if the XML contains more than 256 chars, i will get a corrupted XML.

That's why i want to get the file as i explained in the post.

Thanks.

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

can't you just save it from the menu?

system - list - save - local

Regards,

michal

Former Member
0 Kudos

inigo

You can download the file to disk and open it in an editor like XMLSPY/Textpad which provides for pretty print..

goto SYSTEM->LIST>SAVE->LOCALFILE to download the file

Should solve your problem

inigo_sacramento
Participant
0 Kudos

The problem is that only first 256 chars of the complete XML are saved.

That's why i want to put in N lines, so i won't get that problem.

Thanks.

manish_bhalla2
Contributor
0 Kudos

Hi Inigo,

I don't think there is a way you can specify line breaks after close tags in the reveicer file adapter. The linebreaks are just whitespace anyway in the XML.

A workaround that I can think of for you is to run a script (through the OS command functionality of the adapter) after the file is written, that searches for every occurence of the character sequence >< and inserts a line break between them. But this is a clunky workaround. Also, it will not work if your limitation of 256 chars affects the writing of the file itself.

Cheers

Manish