Choose Language Hide Translation Bar
Highlighted
antonio-domenic
Level III

XML parsing: stop the parsing before complete it

I would like to know if it is possible to stop parsing using Parse XML function when a condition is found to save execution time. Thanks a lot in advance

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Craige_Hales
Staff (Retired)

Re: XMP parsing: stop the parsing before complete it

maybe

 throw("found something") 

in the handler. If that works (I think it should) you can wrap the calling code with 

try( ... , show(exception_msg) );

and check exception_msg=="found something" and decide what to do.

 

(Also check out the XML import if you are loading something into a data table.)

Craige

View solution in original post

2 REPLIES 2
Highlighted
Craige_Hales
Staff (Retired)

Re: XMP parsing: stop the parsing before complete it

maybe

 throw("found something") 

in the handler. If that works (I think it should) you can wrap the calling code with 

try( ... , show(exception_msg) );

and check exception_msg=="found something" and decide what to do.

 

(Also check out the XML import if you are loading something into a data table.)

Craige

View solution in original post

Highlighted
antonio-domenic
Level III

Re: XMP parsing: stop the parsing before complete it

It works, thanks
Article Labels

    There are no labels assigned to this post.