Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Embedding java code into XML code

  1. #1
    Junior Member
    Join Date
    Nov 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Embedding java code into XML code

    Hello there,

    I have a xml file called properties-conf.xml. It has tags like

    <property name="name" value="accountMasterProcess"/>
    <entry key="entity" value="Account"/>
    <entry key="operation" value="upsert"/>
    <entry key="mappingFile" value="c:\dataloader\samples\conf\accountMasterMap .sdl"/>
    <entry key="dataAccess.name" value="queryAccount"/>
    <entry key="dataAccess.type" value="databaseRead"/>

    I have to pass TAG VALUES dynamically through COMMAND PROMPT. For example VALUE of tag "entry" with key "OPERATION" will be set "DELETE" dynamically through command prompt. Is there any way to achieve this. Please do needful


  2. #2
    Forum VIP
    Join Date
    Jun 2011
    Posts
    317
    My Mood
    Bored
    Thanks
    47
    Thanked 89 Times in 74 Posts
    Blog Entries
    4

    Default Re: Embedding java code into XML code

    See Trail: Java API for XML Processing (JAXP)

Similar Threads

  1. Replies: 5
    Last Post: November 14th, 2012, 10:47 AM
  2. Help needed - Embedding javascript code in JSP code.
    By chinnu in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: October 29th, 2012, 01:09 PM
  3. Replies: 3
    Last Post: September 3rd, 2012, 11:36 AM
  4. xml request in java code
    By ridg18 in forum Java Theory & Questions
    Replies: 10
    Last Post: August 9th, 2012, 08:39 AM
  5. [SOLVED] Java code to embedding xml tags at start and end of file
    By John in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: April 30th, 2009, 03:02 PM