Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1023987
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:42:41+00:00 2026-05-16T11:42:41+00:00

Is it valid in XML-RPC to have an unbounded array of elements without having

  • 0

Is it valid in XML-RPC to have an unbounded array of elements without having them inside of a array/data parent? From my limited experience with XML-RPC I have seen that arrays should be listed as such:

<member>
   <name>Name</name>
      <value>
         <array>
            <data>
               <value>
                  <string>Red</string>
               </value>
               <value>
                  <string>Blue</string>
               </value>
            </data>
         </array>
       </value>
</member>

…with the parent Name having children strings Red and Blue. However, the 3rd party RPC service we are integrating with sends arrays of unbounded elements without having them inside of the array/data element, but inside a struct, e.g.

<member>
   <name>Name</name>
      <value>
         <struct>
            <member><name>Option0</name>
               <value><string>Red</string>
            </member>
            <member><name>Option1</name>
               <value><string>Blue</string>
            </member>
         </struct>
      </value>
</member>

…With the values of Option1 and Option2 encapsulated inside of a struct.

The problem I am facing is that when designing the classes that will be serialized, I would have to design my class such as

private string Option0
private string Option1

…

…instead of:

private string[] Name

As I do not know the number of unbounded fields coming back in the structure, it seems the right way to accomplish the task would be to have an array of strings to enumerate through. However, there are no arrays in the resoponse XML, just structures with a dynamic number of fields. Because of that, I would have to list a large number of fields to conform to the structure, even though it’s not really a structure, but an array. Is there something I am missing with the XML-RPC?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T11:42:41+00:00Added an answer on May 16, 2026 at 11:42 am

    Yes it is quite valid XML-RPC struct. We also have such case and are using Cook Computings’ XML-RPC.NET. It works perfectly. Check it, there is a special class there called XmlRpcStruct. You just need to use it in your XML-RPC method request or response.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create a valid xml from a given array(); My Method looks
What is the best practice for generating valid XML with PHP from user submitted
I have a url that contains valid xml, but unsure on how I could
I would like to validate and restrict newline/linefeed character. Valid XML: <root> <node>data data</node>
I have an XML file that is well formed and valid (matched with an
I have a feeling this XML is not valid, can someone please explain why?
hi how to use the valid part of an xml present inside a broken
I would like to convert some value from a XML attribute into valid HTML
Suppose I have downloaded a valid XML document via Ajax (var docum = request.responseXML;).
Suppose I have downloaded a valid XML document via Ajax (var docum = request.responseXML;).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.