domxml_new_doc - can i add encoding attribute?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • R

    #1

    domxml_new_doc - can i add encoding attribute?

    Hello.

    I've got a question about adding encoding attribute to my DOM XML Document?

    I'm from Poland and we use extended latin alphabet - I'd like to use
    iso-8859-2 Polish charset

    e.g.:
    <?xml version="1.0" encoding="iso-8859-2"?>

    is there such posibility in DOM XML?

    thanks in advance
    greetings R


  • Manuel Lemos

    #2
    Re: domxml_new_doc - can i add encoding attribute?

    Hello,

    On 07/18/2004 04:28 PM, R wrote:[color=blue]
    > I've got a question about adding encoding attribute to my DOM XML Document?
    >
    > I'm from Poland and we use extended latin alphabet - I'd like to use
    > iso-8859-2 Polish charset
    >
    > e.g.:
    > <?xml version="1.0" encoding="iso-8859-2"?>
    >
    > is there such posibility in DOM XML?[/color]

    I have seen this question before but I have not seen an answer.

    If you are only writing XML documents, you may want to try this class
    that lets you set the output encoding in a variable.

    http://www.phpclasses.org/xmlwriter


    --

    Regards,
    Manuel Lemos

    PHP Classes - Free ready to use OOP components written in PHP
    http://www.phpclasses.org/

    PHP Reviews - Reviews of PHP books and other products
    http://www.phpclasses.org/reviews/

    Metastorage - Data object relational mapping layer generator

    Comment

    • Zurab Davitiani

      #3
      Re: domxml_new_doc - can i add encoding attribute?

      Manuel Lemos wrote:
      [color=blue]
      > If you are only writing XML documents, you may want to try this class
      > that lets you set the output encoding in a variable.
      >
      > http://www.phpclasses.org/xmlwriter[/color]

      Or, if you are parsing/modifying/writing try ActiveLink PHP XML Package:

      http://www.active-link.com/software/
      Download ActiveLink PHP XML Package for free. ActiveLink PHP XML Package provides means to parse, read, modify and output XML and XML documents without using any PHP XML libraries. Included classes are: XML, XMLDocument, XMLBranch, XMLLeaf, RSS, Tag, Tree, Branch, Leaf, File, Socket, HTTPClient.


      It has its own XML parser and XML tree written completely in PHP.

      Comment

      Working...