Hi,
unfortunately, the SimpleXMLParser is just a simple XML parser - I don't see
any possibility to add a (pdf) document object. I already tried this yesterday.
The SimpleXmlParser parsed my XML file and that's it. Instead, the (old)
XmlParser creates a (pdf) document.
Regards,
Daniel
Am 11.11.2010 um 16:31 schrieb Nurettin DAG:
> Hi,
>
> I can see that there is SimpleXMLParser but I have never used it so I am not
> sure if that is the same XMLParser renamed or not.
>
> I don t think iText supports substituIting values of your variables, try a
> templating language like you said velocity.
>
> Best
> Nurettin
>
> On Thu, Nov 11, 2010 at 8:55 AM, Daniel Plappert <plapp...@denkformat.de>
> wrote:
> Hi,
>
> I just downloaded the new version(5.0.5) of iText. To my surprise, the
> XmlParser, which was available in 2.1.7 is no longer in the new version.
>
> So would you please let me know how can I convert XML documents to PDF, as in
> 2.1.7?
> <itext title="test">
> <paragraph">This is a test</paragraph>
> </itext>
>
> XmlParser.parse(document, new FileInputStream(new File(...)));<--- this
> doesn't work in 5.0.5
>
>
> My second question is, whether it is possible to use "variables" in XML
> documents like this:
> <itext title="test">
> <paragraph">${person.name}</paragraph>
> </itext>
> Or do I have to use another tool for this, i.e. velocity?
>
> Many thanks for your help!
>
> Best regards,
> Daniel
> ------------------------------------------------------------------------------
> Centralized Desktop Delivery: Dell and VMware Reference Architecture
> Simplifying enterprise desktop deployment and management using
> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
> client virtualization framework. Read more!
> http://p.sf.net/sfu/dell-eql-dev2dev
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
>
>
>
> --
> Nurettin DAG
> ------------------------------------------------------------------------------
> Centralized Desktop Delivery: Dell and VMware Reference Architecture
> Simplifying enterprise desktop deployment and management using
> Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
> client virtualization framework. Read more!
> http://p.sf.net/sfu/dell-eql-dev2dev_______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php