473,394 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

creating 1000 xml files with different values agn and agn

Hello
i am working in a project in which i am using xnat technology in that data is entered through xml files only i need to enter 1000 records .so it is very cumbersome to create 1000 xml files So i need a simple way so that i can create and insert 1000 records in xnat database

this is the xml file which i want to generate again and again with some different values Plz could someone helps me get over this problem



<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSPY v2004 rel. 3 U (http://www.xmlspy.com)-->
<Subject xmlns="http://nrg.wustl.edu/xnat" xmlns:xnat="http://nrg.wustl.edu/xnat" xmlns:prov="http://www.nbirn.net/prov" xmlns:xdat="http://nrg.wustl.edu/xdat" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://nrg.wustl.edu/xnat ../src/schemas/xnat/xnat.xsd" ID="XNAT004">

<investigator>
<title>Dr</title>
<firstname>Richard</firstname>
<lastname>Joseph</lastname>
<institution>WUSTL</institution>
<department>DENTAL</department>
<email>w.s@email.com</email>
<phone>314-452-8977</phone>
</investigator>
<demographics xsi:type="xnat:demographicData">
<dob>1976-07-03</dob>
<gender>female</gender>
<handedness>left</handedness>
</demographics>
<experiments>
<experiment xsi:type="xnat:mrSessionData" ID="XNAT005_MR1" session_type="Best Ever">
<date>1999-08-13</date>
<time>14:20:00-05:00</time>
<note>String</note>
<investigator ID="1">
<xnat:title>Dr</xnat:title>
<xnat:firstname>Richard</xnat:firstname>
<xnat:lastname>Joseph</xnat:lastname>
<xnat:institution>WUSTL</xnat:institution>
<xnat:department>DENTAL</xnat:department>
<xnat:email>w.s@email.com</xnat:email>
<xnat:phone>314-452-8977</xnat:phone>
</investigator>
<validation status="COMPLETE">
<method>Script</method>
<date>1999-08-13</date>
<notes>None</notes>
</validation>
<subject_ID>XNAT004</subject_ID>
<scanner>Scanner 1</scanner>
<marker>Marker 1</marker>
<stabilization>Stabilization 1</stabilization>
<operator>Operator 1</operator>
<prearchivePath>pre_archive</prearchivePath>
<scans>
<xnat:scan ID="XNAT005_MR1_SCAN1" type="MPRAGE">
<xnat:note>3</xnat:note>
<xnat:quality>usable</xnat:quality>
<xnat:parameters>
<xnat:voxelRes units="mm" x="1.0" y="1.0" z="1.25"/>
<xnat:orientation>Sag</xnat:orientation>
<xnat:fov x="256" y="256"/>
<xnat:matrix x="224" y="256"/>
<xnat:partitions>0</xnat:partitions>
<xnat:tr>9.7</xnat:tr>
<xnat:te>4.0</xnat:te>
<xnat:ti>20.0</xnat:ti>
<xnat:flip>10</xnat:flip>
<xnat:sequence>mpr_ns_t1_4b195.wkc</xnat:sequence>
<xnat:origin>CAP/CAP_MPRAGEx2.prg</xnat:origin>
<xnat:scanTime>16:04:09</xnat:scanTime>
</xnat:parameters>
<xnat:file cachePath="cache_archive_path" content="MPRAGE_RAW" format="IMA" URI="XNAT003_MR1_SCAN1/RAW/114-5-440.ima" xsi:type="xnat:imageResource">

<xnat:dimensions volumes="1" x="256" y="256" z="128"/>
<xnat:voxelRes units="mm" x="1.0" y="1.0" z="1.25"/>
<xnat:orientation>Sag</xnat:orientation>
</xnat:file>
<xnat:validation>
<xnat:method>arc_validate</xnat:method>
<xnat:date>2005-12-02</xnat:date>
</xnat:validation>
</xnat:scan>
<xnat:scan ID="XNAT005_MR1_SCAN2" type="MPRAGE">
<xnat:note>4</xnat:note>
<xnat:quality>usable</xnat:quality>
<xnat:parameters>
<xnat:voxelRes units="mm" x="1.0" y="1.0" z="1.25"/>
<xnat:orientation>Sag</xnat:orientation>
<xnat:fov x="256" y="256"/>
<xnat:matrix x="224" y="256"/>
<xnat:partitions>0</xnat:partitions>
<xnat:tr>9.7</xnat:tr>
<xnat:te>4.0</xnat:te>
<xnat:ti>20.0</xnat:ti>
<xnat:flip>10</xnat:flip>
<xnat:sequence>mpr_ns_t1_4b195.wkc</xnat:sequence>
<xnat:origin>CAP/CAP_MPRAGEx2.prg</xnat:origin>
<xnat:scanTime>16:10:47</xnat:scanTime>
</xnat:parameters>
<xnat:file cachePath="cache_archive_path" content="MPRAGE_RAW" format="IMA" URI="XNAT003_MR1_SCAN1/RAW/114-6-568.ima" xsi:type="xnat:imageResource">

<xnat:dimensions volumes="1" x="256" y="256" z="128"/>
<xnat:voxelRes units="mm" x="1.0" y="1.0" z="1.25"/>
<xnat:orientation>Sag</xnat:orientation>
</xnat:file>
<xnat:validation>
<xnat:method>arc_validate</xnat:method>
<xnat:date>2005-12-02</xnat:date>
</xnat:validation>
</xnat:scan>
</scans>
<reconstructions>
<reconstructedImage ID="XNAT005_MR1_RECON1" baseScanType="MPRAGE" type="MPRAGE">
<inScans>
<scanID>XNAT005_MR1_SCAN1</scanID>
</inScans>
<in>
<xnat:file cachePath="cache_archive_path" content="MPRAGE_RAW" format="IMA" URI="XNAT005_MR1_SCAN1/RAW/114-5-440.ima" xsi:type="xnat:imageResource">

<xnat:dimensions volumes="1" x="256" y="256" z="128"/>
<xnat:voxelRes units="mm" x="1.0" y="1.0" z="1.25"/>
<xnat:orientation>Sag</xnat:orientation>
</xnat:file>
</in>
<out>
<xnat:file content="GFC" format="ANALYZE" URI="XNAT003_MR1_SCAN1/PROCESSED/MPRAGE/T88_111/XNAT003_MR1_SCAN1_mpr_n4_111_t88_gfc.img" xsi:type="xnat:imageResource">

<xnat:dimensions volumes="1" x="176" y="208" z="176"/>
<xnat:voxelRes units="mm" x="1.0" y="1.0" z="1.0"/>
<xnat:orientation>Tra</xnat:orientation>
</xnat:file>
<xnat:file content="T88" format="IFH" URI="XNAT003_MR1_SCAN1/PROCESSED/MPRAGE/T88_111/XNAT003_MR1_SCAN1_mpr_n4_111_t88.4dfp.img" xsi:type="xnat:imageResource">

<xnat:dimensions volumes="1" x="176" y="208" z="176"/>
<xnat:voxelRes units="mm" x="1.0" y="1.0" z="1.0"/>
<xnat:orientation>Tra</xnat:orientation>
</xnat:file>
</out>
</reconstructedImage>
</reconstructions>
</experiment>
</experiments>
</Subject>
Mar 15 '08 #1
1 2026
jkmyoung
2,057 Expert 2GB
I'm not sure what database type you're using, but you may want to try using BULK LOAD.

How are you currently loading your xml into your database?
Mar 17 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Robin Tucker | last post by:
Hi there, I have a database on my test machine that will need to be installed on users machines. I would like to create the database with the given schema on the users machine and also with...
0
by: kovac | last post by:
The System.directoryservices.dll has an error, and this error was described in http://support.microsoft.com/default.aspx?scid=kb;en-us;839424 At the moment we have Framework version v1.0.3705 and...
4
by: Filippo Pandiani | last post by:
I have a grid that shows the file list from a folder. On the postback, how do I get a Dataset from this grid? Thanks, Filippo.
9
by: Terry E Dow | last post by:
Howdy, I am having trouble with the objectCategory=group member.Count attribute. I get one of three counts, a number between 1-999, no member (does not contain member property), or 0. Using...
4
by: serge | last post by:
I managed to put together C# code and have it do the following: 1- Get all the table names that start with the letter "Z" from sysobjects of my SQL 2000 database and put these table names...
7
by: nono909 | last post by:
I wrote the following time class for the following assignment.i need help in completing this program pleasee. Write a class to hold time. Time is the hour, minute and seconds. Write a constructor...
6
by: Charlie Bear | last post by:
i'm really stuck with this one can anyone help! i have a website that uses c#. it creates a series of directories and files from an xml source. when the xml changes, the directory that the...
9
by: =?Utf-8?B?YmJn?= | last post by:
Hi all, I read somewhere "using kernel stuff in thread is not good.." if ManualResetEvent object is created in thread but not actually used, will it affect performance? Bob
13
by: jkimbler | last post by:
As part of our QA of hardware and firmware for the company I work for, we need to automate some testing of devices and firmware. Since not everybody here knows C#, I'm looking to create a new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.