summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk')
-rw-r--r--sca-cpp/trunk/kernel/xml-test.cpp61
1 files changed, 34 insertions, 27 deletions
diff --git a/sca-cpp/trunk/kernel/xml-test.cpp b/sca-cpp/trunk/kernel/xml-test.cpp
index c83a65fd92..a06e7a540c 100644
--- a/sca-cpp/trunk/kernel/xml-test.cpp
+++ b/sca-cpp/trunk/kernel/xml-test.cpp
@@ -35,36 +35,43 @@ namespace tuscany {
const string currencyXML =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<composite xmlns=\"http://docs.oasis-open.org/ns/opencsa/sca/200912\" "
-"xmlns:t=\"http://tuscany.apache.org/xmlns/sca/1.1\" "
-"targetNamespace=\"http://services\" "
-"name=\"currency\">"
-"<component name=\"CurrencyConverterWebService\">"
-"<implementation.java class=\"services.CurrencyConverterImpl\"/>"
-"<service name=\"CurrencyConverter\">"
-"<binding.ws/>"
-"</service>"
-"</component>"
-"<component name=\"CurrencyConverterWebService2\">"
-"<implementation.java class=\"services.CurrencyConverterImpl2\"/>"
-"<service name=\"CurrencyConverter2\">"
-"<binding.atom/>"
-"</service>"
-"<property name=\"currency\">US</property>"
-"</component>"
-"</composite>"
-"\n";
+"<composite xmlns=\"http://docs.oasis-open.org/ns/opencsa/sca/200912\" xmlns:t=\"http://tuscany.apache.org/xmlns/sca/1.1\" targetNamespace=\"http://services\" name=\"currency\">\n"
+" <component name=\"CurrencyConverterWebService\">\n"
+" <implementation.java class=\"services.CurrencyConverterImpl\"/>\n"
+" <service name=\"CurrencyConverter\">\n"
+" <binding.ws/>\n"
+" </service>\n"
+" </component>\n"
+" <component name=\"CurrencyConverterWebService2\">\n"
+" <implementation.java class=\"services.CurrencyConverterImpl2\"/>\n"
+" <service name=\"CurrencyConverter2\">\n"
+" <binding.atom/>\n"
+" </service>\n"
+" <property name=\"currency\">US</property>\n"
+" </component>\n"
+"</composite>\n";
const string customerXML =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
-"<customer>"
-"<name>jdoe</name>"
-"<address><city>san francisco</city><state>ca</state></address>"
-"<account><id>1234</id><balance>1000</balance></account>"
-"<account><id>6789</id><balance>2000</balance></account>"
-"<account><id>4567</id><balance>3000</balance></account>"
-"</customer>"
-"\n";
+"<customer>\n"
+" <name>jdoe</name>\n"
+" <address>\n"
+" <city>san francisco</city>\n"
+" <state>ca</state>\n"
+" </address>\n"
+" <account>\n"
+" <id>1234</id>\n"
+" <balance>1000</balance>\n"
+" </account>\n"
+" <account>\n"
+" <id>6789</id>\n"
+" <balance>2000</balance>\n"
+" </account>\n"
+" <account>\n"
+" <id>4567</id>\n"
+" <balance>3000</balance>\n"
+" </account>\n"
+"</customer>\n";
const bool isName(const value& token) {