TOMÁŠ HUBÁLEK BLOG: BAVTE SE PŘIMĚŘENĚ…

How to submit Bugzilla bug using XML/RPC and pure Java

Our project uses Bugzilla for tracking issues. I was looking for solution how to submit occured exception programatically. I found quite simple solution using Groovy and I have adapted it to pure Java. Here is the source code: import java.net.MalformedURLException; import java.net.URL; import java.util.HashMap; import java.util.Map; import org.apache.commons.httpclient.HttpClient; import org.apache.xmlrpc.XmlRpcException; import org.apache.xmlrpc.client.XmlRpcClient; import org.apache.xmlrpc.client.XmlRpcClientConfigImpl; import […]

Read the rest of this entry »

XML: CDATA section cannot contain any character!

I work with XML a few years but now I was surprised that CDATA section cannot contain any character. I found document that contains ASCII char 27 (Escape) in CDATA section and parsing of this document failed with exception: org.dom4j.DocumentException: Error on line 38508 of document file:///…/rm_N444148061030074509.xml : An invalid XML character (Unicode: 0x1b) was […]

Read the rest of this entry »

XQuery: trochu jiný přístup k transformacím XML

Mnoho z vás už pravděpodobně v minulosti narazilo na XSLT transformaci XML souboru. Existuje ale i jiný přístup a tím je XQuery.

Read the rest of this entry »