# XMLExtract + a value from java code for DBOutputTable

**URL:** <https://forum.cloverdx.com/t/xmlextract-a-value-from-java-code-for-dboutputtable/247>\
**Category:** CloverDX Platform\
**Created:** [November 21, 2007, 12:00am UTC](https://forum.cloverdx.com/t/xmlextract-a-value-from-java-code-for-dboutputtable/247 "2007-11-21T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![crfpkr](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@crfpkr](https://forum.cloverdx.com/u/crfpkr)\
**Post date:** [November 21, 2007, 12:00am UTC](https://forum.cloverdx.com/t/xmlextract-a-value-from-java-code-for-dboutputtable/247/1 "2007-11-21T00:00:00Z")

</div>

Hi \*

I need to upload an XML file to a database table. For this i am using XMLExtract and DBOutputTable component. I am running this graph from JAVA code.

The problem is that i need to insert an ID value as well along with the data which is in XML file. This ID is obtained at runtime and in JAVA code. Is it possible to pass this ID along with the data read from XML file and all togather to insert this in database.

Any help/example…

Best Regards

crfpkr

---

<div class="post-metadata">

**Author:** ![avackova](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@avackova](https://forum.cloverdx.com/u/avackova)\
**Post date:** [November 22, 2007, 7:24am UTC](https://forum.cloverdx.com/t/xmlextract-a-value-from-java-code-for-dboutputtable/247/2 "2007-11-22T07:24:13Z")

</div>

Hello,  
you can add Reformat component, with your DataRecordTramsform class, between Reader and Writer. Reformat can add the value to the extracted metadata and send it to the DBOutputTable.
