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 6697005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:24:32+00:00 2026-05-26T06:24:32+00:00

I am trying to load the following xml in below and then replace the

  • 0

I am trying to load the following xml in below and then replace the tokens wrapped in {} with the appropriate values, but I noticed that it complains that {} is an invalid character. Should I just load it as a regular text file? or is there a more simple way to do this?

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope {NAMESPACES}>
  <soapenv:Header>
      <From>
        <SystemId>{FROM_SYSTEM_ID}</SystemId>
        <Credential>
          <userName>{USERNAME}</userName>
          <password>{PASSWORD}</password>
        </Credential>
        <SourceId />
      </From>
      <To>
        <Address>{ADDRESS}</Address>
      </To>
      <timeStamp>{TIME_STAMP}</timeStamp>
      <echoToken>{ECHO_TOKEN}</echoToken>
      <action>{ACTION}</action>
      <transactionId>{TRANSACTION_ID}</transactionId>
  </soapenv:Header>
  <soapenv:Body>
    {BODY}
  </soapenv:Body>
</soapenv:Envelope>

I believe the {} is only invalid for attributes, but for it is fine for the inner xml of elements.

  • 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-26T06:24:32+00:00Added an answer on May 26, 2026 at 6:24 am

    {} is not a problem in attributes. It is a problem for your {NAMESPACES} placeholder because it’s just sitting there where an attribute name was expected.

    I suggest that you use a syntax like xmlns="{NAMESPACES}". This should get past most XML parsers (at least, those who don’t validate that a namespace should be a URI).

    However, you would need to treat this as a special case. When you see this string, replace the entire string with your list of namespaces. If you have no namespaces, then you would just remove the string. Otherwise, replace it with your entire list of namespace declarations.

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

Sidebar

Related Questions

I'm trying to use the following code # LOAD XML FILE $XML = new
I'm trying to load my .mo translations using the following code, but it doesn't
Im trying to get some values from the below xml feed <?xml version=1.0 ?>
I'm trying to load an external XML file that contains references to images in
i am trying to parse following xml but no sucess any one guide me
I'm trying to load some xml and xslt stuff into this following html file:
I am trying to load a new view with the following code - (void)tableView:(UITableView
I'm trying to load a page that is basically an edit form inside a
I'm trying to run a T4 template that opens a XML file and uses
I'm trying to load a document with xml in c# the name of xml

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.