• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Decoding Site configuration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.



  • Prev by Date: Development Deployment mode broken again
  • Next by Date: Re: backtracking and Mac browsers
  • Previous by thread: Development Deployment mode broken again
  • Next by thread: Validating WOUpload form element before submitting
  • Index(es):
    • Date
    • Thread