Decoding Site configuration
Decoding Site configuration
- Subject: Decoding Site configuration
- From: email@hidden
- Date: Mon, 19 Apr 2004 15:17:47 +0200
Hello All,
I'm trying to decode the data below from url
http://www.myserver.com:1085/
with the following code:
com.webobjects.appserver.xml.WOXMLDecoder decoder =
com.webobjects.appserver.xml.WOXMLDecoder.decoder();
return decoder.decodeRootObject(myData);
but I got an error:
Unable to decode Dictionary: Unable to decode Array: Unable to decode
Dictionary
Missing objectID: Unable to decode java.lang.String
I'd like to get a dictionary composed of "hostArray",
"applicationArray" and "instanceArray" keys but I don't know how to
decode the data as shown below.
Any idea or suggestions are welcome.
Orlando.
<SiteConfig type="NSDictionary">
<hostArray type="NSArray">
<element type="NSDictionary">
<type type="NSString">MACOSX</type>
<name type="NSString">www.myserver.com</name>
</element>
</hostArray>
<applicationArray type="NSArray">
<element type="NSDictionary">
<cachingEnabled
type="NSString">YES</cachingEnabled>
<notificationEmailAddr
type="NSString"></notificationEmailAddr>
<adaptor
type="NSString">WODefaultAdaptor</adaptor>
<name type="NSString">myApp</name>
...
</element>
</applicationArray>
<instanceArray type="NSArray">
<element type="NSDictionary">
</element>
</instanceArray>
</SiteConfig>
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.