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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T02:03:43+00:00 2026-06-02T02:03:43+00:00

Hi i got a existing XML file and want to add a new entry

  • 0

Hi i got a existing XML file and want to add a new entry via Javascript (atm without any form or stuff like that just hard coded), so my question is how to handel this to add a new book.

<?xml version="1.0"?>
<catalog>
   <book id="bk101">
      <author>Gambardella, Matthew</author>
      <title>XML Developer's Guide</title>
      <genre>Computer</genre>
      <price>44.95</price>
      <publish_date>2000-10-01</publish_date>
      <description>An in-depth look at creating applications 
      with XML.</description>
   </book>
</catalog>
  • 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-06-02T02:03:43+00:00Added an answer on June 2, 2026 at 2:03 am
    XML.BeginNode(“Foo”);
    XML.Attrib(“Bar”, “Some Value”);
    XML.EndNode();
    //Produces: <Foo Bar=”Some Value” />
    

    Check below URL also.

    http://www.codeproject.com/Articles/12504/Writing-XML-using-JavaScript

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

Sidebar

Related Questions

I've got an XML file I want to parse with python. What is best
we've got an existing webapplication written in magic. But now we eventually want to
I have an existing application (with MySQL DB). I just got a new requirement
I've successfully got my proof of concept MSI installer creating an xml file, and
I got the following test code: <Target Name=TestTarget> <MSBuild.ExtensionPack.Xml.XmlFile TaskAction=UpdateElement File=@(ConfigurationFile) XPath=/MyConfiguration/Settings/RetentionTime InnerText=$(RetentionTime)/> </Target>
I am parsing an XML file into a table and want to use the
I've got an existing production Ruby/Rails app that I want to migrate to MongoDB
We are using Maven 2.2.1 version . I have an existing POM.xml file ,
I've got an xml file looked like this. employees.xml <Employees> <Employee> <FirstName>myFirstName</FirstName> <LastName>myLastName</LastName> <Salary>10000</Salary>
Sorry I'm rather new to Spring Security. I've got the following applicationContext.xml <?xml version=1.0

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.