[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Converting XML files to PO



2006/5/12, Pawel Sadowski <mcgiwer fedoraproject org>:
I get this error during converting:

[mcgiwer redhat pl]$ xml2po -o pl.po *.xml
Warning: image file '/wiki/ntheme/img/alert.png' not found.
Warning: image file '/wiki/ntheme/img/alert.png' not found.
Traceback (most recent call last):
  File "/usr/bin/xml2po", line 723, in ?
    CurrentXmlMode.preProcessXml(doc,msg)
  File "/usr/share/xml2po/docbook.py", line 142, in preProcessXml
    root = doc.getRootElement()
  File "/usr/lib/python2.3/site-packages/libxml2.py", line 4010, in
getRootElement
    if ret is None:raise treeError('xmlDocGetRootElement() failed')
libxml2.treeError: xmlDocGetRootElement() failed

Regards,
Pawel Sadowski


On 11-05-2006, thu at 11:37 +0800, Yuan Yijun wrote:
> XML Validation passed.
> xml2po succeeded.
> No problem found for that file.
> What's the expanded value of your "*.xml"?
>
>

maybe you can try this:
for i in "*.xml"; do xmllint $i; done

fix any problems in your xml files before proceed.
.02


--
bbbush ^_^


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]