Fixed problem when document exceeded 1024 nodes.
Benchmarked XPC/XDS returning JSON in various formats

- tested by ttTest, ServiceReturningJSON