Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

type tree construction

Status
Not open for further replies.

mala1

Programmer
Dec 7, 2007
7
US
with out knowing the type of inputfile(edi or xml or flatfile)is it possible to build a type tree
 
Sure you can! Just use a text/binary item for the input card, it will accept everything.
 
which has got better performance
1)Reading the XML as text(without parsing) and then echoing to a run map and validating using XML type tree in the run map
or
2)Reading the XML as text(without parsing) and then using XMLLIB->validate function in the same map using the map rule
Thanks
 
'thorstenhirsch
Sure you can! Just use a text/binary item for the input card, it will accept everything. '



I was referring to a type tree with some structure.
 
Hello Mala1,


XMLLIB--->VALIDATE(xml, schema_url) is a functionality introduced in WTX. In earlier versions of DSTX, we used to parse at the input type because such a functionality did not exist. I feel both approaches are meant depending on your requirements and built-in system functionality.

My personal opinion is that it might be convenient to use XMLLIB--->VALIDATE. It is because error handling might be simplified this way.

Performance-wise, parsing at the input is fair enaough; although I do not have any data on XMLLIB---->VALIDATE.

I hope this helps!

Regards,
Mondweep.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top