XML function library: Xml_get_current_byte_index

Source: Internet
Author: User
Keywords PHP Chinese function manual Xml_get_current_byte_index xml function library
Tags aliyun content data data processing function function library html http

Xml_get_current_byte_index

Gets the current resolution to the first few bit groups.

Syntax: int xml_get_current_column_number (int parser);

return value: Integer

Function type: Data processing
&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;
Content Description

This function is used to obtain the bit group (byte) in which the current XML parsing is being made. Parameter parser to parse code. If parser error, return the value of false, if no errors, return the bit number.

Want to use this function library to install Zlib First, can obtain this function library to http://www.cdrom.com/pub/infozip/zlib/to use this function library, need to go to Http://www.jclark.com/xml retrieve XML function library first, and compile or install it. Users with RedHat Linux can get RPM format files to http://www.guardian.no/~ssb/phpxml.html. Then add the--with-xml configuration options before compiling PHP. Tommy@nashville.net pointed out (12-jan-1999) If there is a problem, still need to put in Xmltok.h and xmlparse.h two C language header file, or set the environment variable.

The current version supports three character sets: ASCII, Iso-8859-1 and UTF-8. As for the UTF-16 character set PHP has not yet been supported.

XML has many error codes, as follows

Xml_error_none
Xml_error_no_memory
Xml_error_syntax
Xml_error_no_elements
Xml_error_invalid_token
Xml_error_unclosed_token
Xml_error_partial_char
Xml_error_tag_mismatch
Xml_error_duplicate_attribute
Xml_error_junk_after_doc_element
Xml_error_param_entity_ref
Xml_error_undefined_entity
Xml_error_recursive_entity_ref
Xml_error_async_entity
Xml_error_bad_char_ref
Xml_error_binary_entity_ref
Xml_error_attribute_external_entity_ref
Xml_error_misplaced_xml_pi
Xml_error_unknown_encoding
Xml_error_incorrect_encoding
Xml_error_unclosed_cdata_section
Xml_error_external_entity_handling

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.