logo       

RE: Error message- ParserDetails.ini?: msg#00059

lang.perl.xml

Subject: RE: Error message- ParserDetails.ini?

It's a pity you weren't going from CSV to XML ... XML::CSV would've been perfect :)  .

You could use XML::XSLT for such a thing, but that would be dependent on how large the file is really: the DOM can impose some

really high memory costs, but the ease of use and XPath capabilities are pretty nice.


If the file is large, I would recommend XML::SAX, particularly XML:: SAX::Expat.  There are also some cool things like XML::SAX::Machines (which I have never had a chance to use, but it will be SO necessary in the near future, I'm sure), which

you can take advantage in case of an increase in size or complexity.

Again, those are just my personal opinions, aside from the fact a really large file size may make your choice of going with XML::LibXSLT.

HTH,
grant


-----Original Message-----
From: Sullivan, Patrick [mailto:PatrickSullivan@xxxxxxxxxxx]
Sent: Thursday, December 18, 2003 11:41 AM
To: Grant Babb; perl-xml@xxxxxxxxxxxxxxxxxxxxxxxx
Subject: RE: Error message- ParserDetails.ini?


We will receive a file from a 3rd party vendor contain New Hire(s)  and the Job Requisition  for that New Hire. The deepest it get is 5 with only one CDATA entry but no PCDATA and a max of one attrib per tag.

I need to create a CSV file that our ERP's COBOL program will process that will  have one line for each <RequisitionCandidate>.

Which API would you use?



<?xml version="1.0" encoding="UTF-8"?><VisionDataExchange xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance">
<Credentials>
<Client>Client40_CenturaHealth</Client>
<Version>4.3</Version>
</Credentials>
<ExportData>
<RequisitionCandidate>
<Candidate refCode="">
 <FirstName>Josh</FirstName>
....
    <Field fldCode="FLD_SIGNATURE_FIELD"></Field>
   </CustomInfo>
  </Profile>
 </Profiles>
</Candidate><Requisition clientReqId="54">
 <Title>RN</Title>
...
</Requisition>
</RequisitionCandidate>
<RequisitionCandidate>
<Candidate refCode="">
 <FirstName>Cand</FirstName>
...
</RequisitionCandidate>
</ExportData></VisionDataExchange>


Thank you,

Patrick Sullivan
 -----Original Message-----
From: Grant Babb [mailto:gbabb@xxxxxxxxxxxxxxx]
Sent: Thursday, December 18, 2003 9:55 AM
To: Sullivan, Patrick; perl-xml@xxxxxxxxxxxxxxxxxxxxxxxx
Subject: RE: Error message- ParserDetails.ini?




>>Also Grant, does XML::Simple have any problems with CDATA?
I have never used XML::Simple, mainly because from what I have seen on this list using it can be problematic and the usual

advice I come across is to avoid using it.  Maybe if you could give the list an idea of what your requirements were, a
better suggestion could be made.
grant babb
L-EET Web Services
http://www.l-eet.com/






This communication is for the use of the intended recipient only. It may contain information that is privileged and confidential. If you are not the intended recipient of this communication, any disclosure, copying, further distribution or use thereof is prohibited. If you have received this communication in error, please advise me by return e-mail or by telephone and delete/destroy it.

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise