mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04:00 
			
		
		
		
	parser interface code. It now uses libxml2 instead of expat (though I've left the old code in the tarball). This means *proper* XPath support, and the provided function allows you to wrap your result set in XML tags to produce a new XML document. John Gray
		
			
				
	
	
		
			7 lines
		
	
	
		
			251 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			251 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| --SQL for XML parser
 | |
| 
 | |
| CREATE FUNCTION pgxml_parse(text) RETURNS bool
 | |
| 	AS '_OBJWD_/pgxml_DLSUFFIX_' LANGUAGE 'c' WITH (isStrict);
 | |
| 
 | |
| CREATE FUNCTION pgxml_xpath(text,text,text,text) RETURNS text
 | |
| 	AS '_OBJWD_/pgxml_DLSUFFIX_' LANGUAGE 'c' WITH (isStrict); |