Thunderstone Software Document Search, Retrieval, and Management
Search:
Vortex Manual
 

xmlReaderNewFromString

 

SYNOPSIS

    xmlReader xmlReaderNewFromString(string data
                                   [, string encoding ]
                                   [, string options  ] )

Parameters:

  • data - the XML you want to parse and read

  • encoding (optional) - encoding to use for the file

  • options (optional) - a comma-separated list of parsing options (see below)

Returns:

  • return value


DESCRIPTION
xmlReaderNewFromString() parses xml data from a Vortex variable into an xmlReader.

A copy of the variable is made at the time that xmlReaderNewFromString() is called, so changes to the variable that contains xml data after the xmlReader has been created will not affect the xmlReader.

  • XML_PARSE_RECOVER - recover on errors

  • XML_PARSE_NOENT - substitute entities

  • XML_PARSE_DTDLOAD - load the external subset

  • XML_PARSE_DTDATTR - default DTD attributes

  • XML_PARSE_DTDVALID - validate with the DTD

  • XML_PARSE_NOERROR - suppress error reports

  • XML_PARSE_NOWARNING - suppress warning reports

  • XML_PARSE_PEDANTIC - pedantic error reporting

  • XML_PARSE_NOBLANKS - remove blank nodes

  • XML_PARSE_XINCLUDE - Implement XInclude substitution

  • XML_PARSE_NONET - Forbid network access

  • XML_PARSE_NSCLEAN - remove redundant namespaces declarations

  • XML_PARSE_NOCDATA - merge CDATA as text nodes

  • XML_PARSE_NOXINCNODE - do not generate XINCLUDE START/END nodes


EXAMPLE

    <$xml = "<item>I'm a simple XML document!</item>">
    <$reader = (xmlReaderNewFromString($xml))>


SEE ALSO
xmlReaderNewFromFile


Copyright © Thunderstone Software     Last updated: Mon Feb 18 10:28:15 EST 2013
 
Home   ::   Products   ::   Solutions   ::   How to Buy   ::   Support   ::   Contact Us   ::   News   ::   About
Copyright © 2013 Thunderstone Software LLC. All rights reserved.