Function Reference
This section provides detailed documentation for all functions in the webbed extension.
Function Categories
Category |
Description |
|---|---|
Read XML/HTML files or parse strings into tables ( |
|
Extract data from XML using XPath ( |
|
Extract data from HTML ( |
|
Convert between formats ( |
|
Utility functions ( |
Quick Reference
File Reading & String Parsing Functions
Function |
Description |
|---|---|
|
Read XML files into table with schema inference |
|
Read XML files as document objects |
|
Read HTML files into table with schema inference |
|
Read HTML files as document objects |
|
Parse XML string with schema inference |
|
Parse XML string as document object |
|
Parse HTML string with schema inference |
|
Parse HTML string as document object |
XML Extraction Functions
Function |
Description |
|---|---|
|
Extract all text matches using XPath → VARCHAR[] |
|
Extract all text content from document |
|
Extract all matching elements → xmlfragment[] |
|
Extract all matching elements as newline-separated text |
|
Extract attributes from matching elements |
|
Extract XML comments with line numbers |
|
Extract CDATA sections with line numbers |
HTML Extraction Functions
Function |
Description |
|---|---|
|
Extract all text from HTML document |
|
Extract text using XPath expression |
|
Extract all links with metadata |
|
Extract all images with metadata |
|
Extract tables as rows (table function) |
|
Extract table data as structured rows |
|
Extract tables with rich JSON structure |
|
Escape HTML special characters |
|
Decode HTML entities to text |
Conversion Functions
Function |
Description |
|---|---|
|
Convert XML to JSON with options |
|
Convert JSON to XML |
|
Convert any value to XML |
|
Convert value to XML with custom node name |
|
Convert HTML to list of document blocks |
|
Convert document blocks back to HTML |
Utility Functions
Function |
Description |
|---|---|
|
Check if XML is well-formed |
|
Alias for xml_valid |
|
Get document statistics |
|
List XML namespaces |
|
Get map of well-known namespace prefixes |
|
Look up URI for common namespace prefix |
|
Detect namespace prefixes in XPath |
|
Find prefixes not declared in XML |
|
Create mock URIs for prefixes |
|
Add namespace declarations to XML |
|
Format XML with indentation |
|
Remove whitespace from XML |
|
Wrap XML fragment with element |
|
Validate against XSD schema |
|
Get libxml2 version info |