Skip to main content

xmlDoc

Type Alias xmlDoc 

Source
pub type xmlDoc = _xmlDoc;
Expand description

XML or HTML document

Aliased Type§

#[repr(C)]
pub struct xmlDoc {
Show 24 fields pub _private: *mut c_void, pub type_: u32, pub name: *mut i8, pub children: *mut _xmlNode, pub last: *mut _xmlNode, pub parent: *mut _xmlNode, pub next: *mut _xmlNode, pub prev: *mut _xmlNode, pub doc: *mut _xmlDoc, pub compression: i32, pub standalone: i32, pub intSubset: *mut _xmlDtd, pub extSubset: *mut _xmlDtd, pub oldNs: *mut _xmlNs, pub version: *mut u8, pub encoding: *mut u8, pub ids: *mut c_void, pub refs: *mut c_void, pub URL: *mut u8, pub charset: i32, pub dict: *mut _xmlDict, pub psvi: *mut c_void, pub parseFlags: i32, pub properties: i32,
}

Fields§

§_private: *mut c_void

application data

§type_: u32

XML_DOCUMENT_NODE or XML_HTML_DOCUMENT_NODE

§name: *mut i8

NULL

§children: *mut _xmlNode

first child

§last: *mut _xmlNode

last child

§parent: *mut _xmlNode

parent node

§next: *mut _xmlNode

next sibling

§prev: *mut _xmlNode

previous sibling

§doc: *mut _xmlDoc

reference to itself

§compression: i32

level of zlib compression

§standalone: i32

standalone document (no external refs)

  • 1 if standalone=“yes”,
  • 0 if standalone=“no”,
  • -1 if there is no XML declaration,
  • -2 if there is an XML declaration, but no standalone attribute was specified
§intSubset: *mut _xmlDtd

internal subset

§extSubset: *mut _xmlDtd

external subset

§oldNs: *mut _xmlNs

used to hold the XML namespace if needed

§version: *mut u8

version string from XML declaration

§encoding: *mut u8

actual encoding if any

§ids: *mut c_void

hash table for ID attributes if any

§refs: *mut c_void

hash table for IDREFs attributes if any

§URL: *mut u8

URI of the document

§charset: i32

unused

§dict: *mut _xmlDict

dict used to allocate names if any

§psvi: *mut c_void

for type/PSVI information

§parseFlags: i32

xmlParserOption enum used to parse the document

§properties: i32

xmlDocProperties of the document