How to transform node name in XML data source for SSIS
I have the following xml file; I want to change the node name of Emp.location to Emp_location, Edu.location to Edu_location, Addr.location to Addr_location as it was not supported by SSIS. I have multiple files like that. I am thinking to use SSIS XML
task with XLST file to transform it. Can anybody help it?
Thank you
<?xml version="1.0" encoding="utf-8"?>
<Resumes>
<Resume>
<Name>
<Name.Prefix />
<Name.First>Shai</Name.First>
<Name.Middle />
<Name.Last>Bassli</Name.Last>
<Name.Suffix />
</Name>
<Skills>
I am an experienced and versatile machinist who can operate a range of machinery personally
as well as supervise the work of other machinists. I specialize in diagnostics and precision inspection, have expertise in reading blueprints, and am able to call on strong interpersonal and communication skills to guide the work of other production machinists
whose work I am called upon to inspect.
My degree in mechanical engineering affords me a better theoretical understanding and mathematical
background than many other candidates in the machinist trade.
</Skills>
<Employment>
<Emp.StartDate>2000-06-01Z</Emp.StartDate>
<Emp.EndDate>2002-09-30Z</Emp.EndDate>
<Emp.OrgName>Wingtip Toys</Emp.OrgName>
<Emp.JobTitle>Lead Machinist</Emp.JobTitle>
<Emp.Responsibility>
Supervised work of staff of four machinists. Coordinated all complex assembly and tooling
activities, including production of tricycles and wagons.
Developed parts fabrication from sample parts, drawings and verbal orders.Worked with
ISO9000 implementation.
</Emp.Responsibility>
<Emp.FunctionCategory>Production</Emp.FunctionCategory>
<Emp.IndustryCategory>Manufacturing</Emp.IndustryCategory>
<Emp.Location>
<Location>
<Loc.CountryRegion>US </Loc.CountryRegion>
<Loc.State>MI </Loc.State>
<Loc.City>Saginaw</Loc.City>
</Location>
</Emp.Location>
</Employment>
<Employment>
<Emp.StartDate>1996-11-15Z</Emp.StartDate>
<Emp.EndDate>2000-05-01Z</Emp.EndDate>
<Emp.OrgName>Blue Yonder Airlines</Emp.OrgName>
<Emp.JobTitle>Machinist</Emp.JobTitle>
<Emp.Responsibility>
Repaired and maintained a variety of production and fabrication machine tools.
Set up and operated machines to close tolerances. Used and wrote CNC machine programs.
Trained extensively in computer-aided manufacturing.
</Emp.Responsibility>
<Emp.FunctionCategory>Production</Emp.FunctionCategory>
<Emp.IndustryCategory>Manufacturing</Emp.IndustryCategory>
<Emp.Location>
<Location>
<Loc.CountryRegion>US </Loc.CountryRegion>
<Loc.State>IL </Loc.State>
<Loc.City>Chicago</Loc.City>
</Location>
</Emp.Location>
</Employment>
<Employment>
<Emp.StartDate>1994-06-10Z</Emp.StartDate>
<Emp.EndDate>1996-07-22Z</Emp.EndDate>
<Emp.OrgName>City Power and Light</Emp.OrgName>
<Emp.JobTitle>Assistant Machinist</Emp.JobTitle>
<Emp.Responsibility>
Performed centerless grinding. Received training in manual mill and lathe machines,
as well as micrometers and calipers.
Owned complete toolset.Worked extensive overtime on request.
</Emp.Responsibility>
<Emp.FunctionCategory>Production</Emp.FunctionCategory>
<Emp.IndustryCategory>Manufacturing</Emp.IndustryCategory>
<Emp.Location>
<Location>
<Loc.CountryRegion>US </Loc.CountryRegion>
<Loc.State>IA </Loc.State>
<Loc.City>Des Moines</Loc.City>
</Location>
</Emp.Location>
</Employment>
<Education>
<Edu.Level>Bachelor</Edu.Level>
<Edu.StartDate>1990-09-15Z</Edu.StartDate>
<Edu.EndDate>1994-05-10Z</Edu.EndDate>
<Edu.Degree>Bachelor of Science</Edu.Degree>
<Edu.Major>Mechanical Engineering</Edu.Major>
<Edu.Minor />
<Edu.GPA>3.2</Edu.GPA>
<Edu.GPAScale>4</Edu.GPAScale>
<Edu.School>Midwest State University</Edu.School>
<Edu.Location>
<Location>
<Loc.CountryRegion>US </Loc.CountryRegion>
<Loc.State>IA </Loc.State>
<Loc.City>Ames</Loc.City>
</Location>
</Edu.Location>
</Education>
<Address>
<Addr.Type>Home</Addr.Type>
<Addr.Street>567 3rd Ave</Addr.Street>
<Addr.Location>
<Location>
<Loc.CountryRegion>US </Loc.CountryRegion>
<Loc.State>MI </Loc.State>
<Loc.City>Saginaw</Loc.City>
</Location>
</Addr.Location>
<Addr.PostalCode>53900</Addr.PostalCode>
<Addr.Telephone>
<Telephone>
<Tel.Type>Voice</Tel.Type>
<Tel.IntlCode>1</Tel.IntlCode>
<Tel.AreaCode>276</Tel.AreaCode>
<Tel.Number>555-0114</Tel.Number>
</Telephone>
<Telephone>
<Tel.Type>Fax</Tel.Type>
<Tel.IntlCode>1</Tel.IntlCode>
<Tel.AreaCode>276</Tel.AreaCode>
<Tel.Number>555-0132</Tel.Number>
</Telephone>
</Addr.Telephone>
</Address>
<EMail>[email protected]</EMail>
<WebSite />
</Resume>
</Resumes>
See if these posts help: http://blogs.msdn.com/b/mattm/archive/2007/12/15/xml-source-making-things-easier-with-xslt.aspx
http://simonlv.blogspot.ca/2012/08/ssis-step-by-step-6-use-xslt-to.html
Arthur My Blog
Similar Messages
-
How to fetch APPROVER NAME and approval date dynamically for an user
Hi all..
How to fetch approver name and approval date dynamicall for an user in an email template..
can any help me to sort out this pbm,i am new to IDM..
Thanks in advance..Access policies get a static value. You can't populate a field with an adapter. If you must do this, leave the field blank, and put an adapter on the process form for your field that must be populated using code or logic.
-Kevin -
Can Discoverer be used as an XML Data source for XMLP ?
I am wondering if Discoverer can generate an XML Data Source for XMPL.
I have heard that Discoverer Viewer can have XML as an output. Is there a way of using this XML output with XMLP and, if yes, how to batch both steps ?Hi
My understanding is that Discoverer does not generate XML data as an ouput that XMLP can consume. The XML is does generate is actually an XML RDF for Oracle Reports.
XMLP is integrated thou, when you export your Disco report to PDF thats XMLP doing the conversion to PDF for you.
Regards, Tim -
How to find unsued Transfer Rules and Data Sources for a Master Table...?? My requirement is i need to delete those Transfer rules and Data Sources which are not in use
Hi
Go to manage of the Text or attirbute of the master data object, see what are being loaded daily from there and delete the remaining.
Cheer
Ans as expected, Please reward -
How to create a report using XML data source from Crystal Report Designer
Hi,
Iu2019m having Crystal Report Designer XI R2 SP4. Iu2019m trying to create a report using XML data source stored on disk. This is a customer order report and the xml is structured in such a way that it has an order details header part (master) and then it has several order lines (detail). One order line can have several order line characteristics (detail-detail). So what I need to know is now I can design this layout from the designer. If this was done using views I can do it with sub-reports but using xml data this seems to be different. Can you help me to design this layout? I have included the xml and xsd as well.
Thank you in advance.
Regards,
Chanaka
XML
<?xml version="1.0" encoding="UTF-8"?>
<CUSTOMER_ORDER_CONF_REP_REQUEST xmlns:xsi="http://www.w3.org/2001/XMLSchema" xmlns="urn:ifsworld-com:customer_order_conf_rep">
<CUSTOMER_ORDER_CONF_REP>
<ORDER_NO>D555809</ORDER_NO>
<PRINTED_DATE>2009-03-26T08:52:54</PRINTED_DATE>
<AUTHORIZE_NAME>Chanaka</AUTHORIZE_NAME>
<CUSTOMER_NO>CU-1473-INV</CUSTOMER_NO>
<CUST_NAME>Mr.Johan Matts</CUST_NAME>
<SHIP_ADDR_1>93,Main Street</SHIP_ADDR_1>
<SHIP_ADDR_2>Negambo Road</SHIP_ADDR_2>
<SHIP_ADDR_3>Watthala</SHIP_ADDR_3>
<SHIP_ADDR_4>SRI LANKA</SHIP_ADDR_4>
<BILL_ADDR_1>93,Main Street</BILL_ADDR_1>
<BILL_ADDR_2>Negambo Road</BILL_ADDR_2>
<BILL_ADDR_3>Watthala</BILL_ADDR_3>
<BILL_ADDR_4>SRI LANKA</BILL_ADDR_4>
<CUSTOMER_PO_NO>112984638</CUSTOMER_PO_NO>
<CUSTOMER_FAX>112984639</CUSTOMER_FAX>
<CUSTOMER_EMAIL>abcbababab</CUSTOMER_EMAIL>
<ORDER_LINES>
<ORDER_LINE>
<LINE_NO>1</LINE_NO>
<CUSTOMER_PART_NO>NW-IP11</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>iPod</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>1200</SALE_UNIT_PRICE>
<PRICE_TOTAL>1200</PRICE_TOTAL>
<DISCOUNT>0</DISCOUNT>
<PRICE_QTY>1</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID xsi:nil="1"/>
<CHARACTERISTIC_VALUE xsi:nil="1"/>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
<ORDER_LINE>
<LINE_NO>2</LINE_NO>
<CUSTOMER_PART_NO>NW-IP24</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>XGA Projector</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>500</SALE_UNIT_PRICE>
<PRICE_TOTAL>1500</PRICE_TOTAL>
<DISCOUNT>0</DISCOUNT>
<PRICE_QTY>3</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free Instalation</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
<ORDER_LINE>
<LINE_NO>3</LINE_NO>
<CUSTOMER_PART_NO>NW-IP02</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>Sony DVD Player</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>1000</SALE_UNIT_PRICE>
<PRICE_TOTAL>1000</PRICE_TOTAL>
<DISCOUNT>0</DISCOUNT>
<PRICE_QTY>1</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free 5 DVDs</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
<ORDER_LINE>
<LINE_NO>4</LINE_NO>
<CUSTOMER_PART_NO>NW-IP99</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>Flatscreen TV</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>1500</SALE_UNIT_PRICE>
<PRICE_TOTAL>1350</PRICE_TOTAL>
<DISCOUNT>10</DISCOUNT>
<PRICE_QTY>1</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free Delivery</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>2</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>1 year additional warranty</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
<ORDER_LINE>
<LINE_NO>5</LINE_NO>
<CUSTOMER_PART_NO>NW-IP56</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>Sony MP3 Player</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>200</SALE_UNIT_PRICE>
<PRICE_TOTAL>400</PRICE_TOTAL>
<DISCOUNT>0</DISCOUNT>
<PRICE_QTY>2</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free carry belt</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>2</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free promotional 4GB memory bar</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>3</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>No warranty on memory bar</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
</ORDER_LINES>
</CUSTOMER_ORDER_CONF_REP>
</CUSTOMER_ORDER_CONF_REP_REQUEST>
XSD
<?xml version="1.0" encoding="UTF-8"?>
<?report module="ORDER" package="CUSTOMER_ORDER_CONF_REP" ?>
<xs:schema targetNamespace="urn:ifsworld-com:customer_order_conf_rep" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:ifsworld-com:customer_order_conf_rep" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="CUSTOMER_ORDER_CONF_REP_REQUEST">
<xs:complexType>
<xs:all minOccurs="1" maxOccurs="1">
<xs:element name="CUSTOMER_ORDER_CONF_REP">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="50">
<xs:element name="ORDER_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PRINTED_DATE" type="xs:dateTime" nillable="true" minOccurs="0"/>
<xs:element name="AUTHORIZE_NAME" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_PO_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUST_NAME" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SHIP_ADDR_1" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SHIP_ADDR_2" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SHIP_ADDR_3" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SHIP_ADDR_4" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILL_ADDR_1" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILL_ADDR_2" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILL_ADDR_3" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILL_ADDR_4" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_FAX" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_EMAIL" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ORDER_LINES" nillable="true" minOccurs="0">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="ORDER_LINE">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="39">
<xs:element name="LINE_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SALE_UNIT_PRICE" type="xs:float" nillable="true" minOccurs="0"/>
<xs:element name="PRICE_TOTAL" type="xs:float" nillable="true" minOccurs="0"/>
<xs:element name="DISCOUNT" type="xs:float" nillable="true" minOccurs="0"/>
<xs:element name="PRICE_QTY" type="xs:float" nillable="true" minOccurs="0"/>
<xs:element name="CUSTOMER_PART_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="4000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_PART_DESC" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="4000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ORDER_LINE_CHARACTERSTICS" nillable="true" minOccurs="0">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="CHARACTERISTIC_ITEM">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="6">
<xs:element name="CHARACTERISTIC_ID" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CHARACTERISTIC_VALUE" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>Hi Sourashree,
Thank you for the response and ideas you have given me so far. I can get the fetch the data from the data source without any problem. That is I do the following,
1. New Report
2. From Create New Connection-> XML
3. Provide the u201CLocal XML Fileu201D and have u201CSpecify Schema Fileu201D checked -> Next
4. Provide the u201CLocal Schema Fileu201D -> Finish
Then I can see the following under XML
+ CUSTOMER_ORDER_CONF_REP_REQUEST
CUSTOMER_ORDER_CONF_REP_REQUEST
CUSTOMER_ORDER_CONF_REP_REQUEST/CUSTOMER_ORDER_CONF_REP
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS/CHARACTERSTIC_ITEM
And from here if I add the following three I can get all the fields I need to the report
CUSTOMER_ORDER_CONF_REP_REQUEST/CUSTOMER_ORDER_CONF_REP
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS/CHARACTERSTIC_ITEM
Then I come to the Linking section. Here I canu2019t link anything. There is a common field called u201CInternal_IDu201D but I canu2019t link using it. So I get a message when I click Next. From here I add all the fields.
For this point onwards only I need help. How do I group, add fields and design the layout so I can get an report output as follows.
Date
Order number Authorized code
Customer No
Name
Phone
Fax email
Shipping address 1 Billing Address 1
Shipping address 2 Billing Address 2
Shipping address 3 Billing Address 3
Shipping address 4 Billing Address 4
Order Line 1 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026 LINE_NO CUSTOMER_PART_NO CUSTOMER_PART_DESC SALE_UNIT_PRICE PRICE_QTY DISCOUNT PRICE_TOTAL
Characteristic details belonging to Order line 1 CHARACTERISTIC_ID 1 CHARACTERISTIC_VALUE1
CHARACTERISTIC_ID 2 CHARACTERISTIC_VALUE2
CHARACTERISTIC_ID 3 CHARACTERISTIC_VALUE3
Order Line 2 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Characteristic details belonging to Order line 2
Order Line 3 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Characteristic details belonging to Order line 3
Order Line 4 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Characteristic details belonging to Order line 4
Order Line 5 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Characteristic details belonging to Order line 5
How can I achieve this kind of a layout using the give xml and xsd? Should I use grouping if so how should I do the grouping?
I have included the full xml and xsd in the first mail I posted but I canu2019t see it now. I can include that again if you want.
Regards,
Chanaka -
I am using web services to read an XML file that contains a schema. I am using the input as the data source for a grid. When the grid is populated it does not appear that the schema is interpreted. All the decimal values are presented as strings and are not sorted correctly. Is there something specific that I need to do to invoke the schema?
Worst forums ever! Nobody can help with the insertion of a
currencyvalidator in a datagrid itemeditor? -
Microsoft Online Services Authentication option disabled in the OData Data Source for SSIS
I am attempting to use the new OData source for SQL Server 2012 (
http://www.microsoft.com/en-us/download/details.aspx?id=42280)
to access SharePoint Online data. I should be able to do so by selection the "Microsoft Online Services Authentication" option, but it seems to be disabled. Does anyone know how to enable it?
Cheers
JohnHi John,
Glad to hear that you have resolved the issue by yourself. Thank you for sharing your valuable blog.
Regards,
Mike Yin
If you have any feedback on our support, please click
here
Mike Yin
TechNet Community Support -
BI Admin Tool and XSLT transformation for XML data source - How it works ?
Hello,
There is a possibility to import data from XML data source using BI Admin Tool.
In the import window we can point XSLT file. What is the purpose of that XSLT field?
Why I am asking ?
I thought it is smth like XSLT processor, but simply it doesnt work.
What I did:
- I pointed XML data source file
- I pointed XSLT transformation file
- Click OK, and still get the message that the XML file structure is not supported
After that I transformed that XML file with some desktop XSLT processor using the same XSLT file, and I tried to connect that file directly using BI Admin tool.Then it works. So it means that the transformation is ok.
So basically one question comes to my mind in that situation:
What is the purpose of XSLT field in BI Admin Tool when it comes to XML data source ?
(it doesnt look like XSLT processor)
Greetings
/MichalHi Mariano
Why you need to use XSLT for transforming XML file into ABAP table
Code is a part of some ABAP report. Looks like it is reading a file from file system and updating table after transformation
If you have requirement like you need to read XML file and then insert the data into a SAP table
You can use
File to RFC
File to Proxy scenario using SAP PI.
Please provide more inputs on requirement to help
Thanks
Gaurav -
I followed a procedure described in a book.
1. insert "Inventory.xml" file to a project "WpfXmlDataBinding" .
2. add the XML data source through the data panel of "blend for 2013", named it "InventoryXmlDataStore" and store it in the current document.
3. dragged and droppped the nodes from the Data panel onto the artboard.
Then I checked my Xaml file against the one provided by the book
Xaml file by the book:
<Window.Resources>
<!-- This part is missing in my xaml file --><XmlDataProvider x:Key="InventoryDataSource"
Source="\Inventory.xml"
d:IsDataSource="True"/>
<!-- This part is missing in my xaml file -->
<DataTemplate x:Key="ProductTemplate">
<StackPanel>
<TextBlock Text="{Binding XPath=@ProductID}"/>
<TextBlock Text="{Binding XPath=Cost}"/>
<TextBlock Text="{Binding XPath=Description}"/>
<CheckBox IsChecked="{Binding XPath=HotItem}"/>
<TextBlock Text="{Binding XPath=Name}"/>
</StackPanel>
</DataTemplate>
</Window.Resources>
<Grid>
<ListBox HorizontalAlignment="Left"
ItemTemplate="{DynamicResource ProductTemplate}"
ItemsSource="{Binding XPath=/Inventory/Product}"
Margin="89,65,0,77" Width="200"/>
</Grid>
my Xaml file:
<Window x:Class="WpfXmlDataBinding.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="922" Width="874">
<Window.Resources>
<DataTemplate x:Key="ProductTemplate">
<StackPanel>
<TextBlock Text="{Binding XPath=@ProductID}"/>
<TextBlock Text="{Binding XPath=Cost}"/>
<TextBlock Text="{Binding XPath=Description}"/>
<CheckBox IsChecked="{Binding XPath=HotItem}"/>
<TextBlock Text="{Binding XPath=Name}"/>
</StackPanel>
</DataTemplate>
</Window.Resources>
<Grid DataContext="{Binding Source={StaticResource InventoryXmlDataStore}}">
<ListBox HorizontalAlignment="Left" Height="370"
ItemTemplate="{DynamicResource ProductTemplate}"
ItemsSource="{Binding XPath=/Inventory/Product}"
Margin="65,55,0,0" VerticalAlignment="Top" Width="270"/>
</Grid>
</Window>
All looks quite the same except the <XmlDataProvider ....> part under <Window.Resources>, which is gone completely in my Xaml file.
1, Why?
2, How many different ways to deal with xml data source through WPF?
Thanks, guys.
(ps My "WpfXmlDataBinding" runs without problem through.)Never do yourself down Richard.
Leave that to other people.
It's quite common for smart developers to think they're not as good as they are.
I coach a fair bit and it's a surprisingly common feeling.
And to repeat.
Never use anything ends .. provider. They're for trivial demo apps. Transform xml into objects and use them. Write it back as xml. Preferably, use a database.
You want to read a little mvvm theory first.
http://en.wikipedia.org/wiki/Model_View_ViewModel
Whatever you do, don't read Josh Smiths explanation. I used to recommend it but it confuses the heck out newbies. Leave that until later.
Laurent Bugnion did a great presentation at mix10. Unfortunately that doesn't seem to be working on the MS site, but I have a copy. Download and watch:
http://1drv.ms/1IYxl3z
I'm writing an article at the moment which is aimed at beginners.
http://social.technet.microsoft.com/wiki/contents/articles/30564.wpf-uneventful-mvvm.aspx
The sample is just a collection of techniques really.
I have a sample which involves no real data but is intended to illustrate some aspects of how viewmodels "do stuff" and how you use datatemplates to generate UI.
I can't remember if I recommended it previously to you:
https://gallery.technet.microsoft.com/WPF-Dialler-simulator-d782db17
And I have working samples which are aimed at illustrating line of business architecture. This is an incomplete step by step series but I think more than enough to chew on once you've done the previous stuff.
http://social.technet.microsoft.com/wiki/contents/articles/28209.wpf-entity-framework-mvvm-walk-through-1.aspx
The write up for step2 is work in progress.
https://gallery.technet.microsoft.com/WPF-Entity-Framework-MVVM-78cdc204
Hope that helps.
Recent Technet articles: Property List Editing;
Dynamic XAML -
Needing to use xml data source to populate richfaces tree nodes
Hey I cant seem to figure this out. I know I probably need to write some java code but Im not sure how it should look. I have some xml and I need to use the data from within the elements to populate some nodes on a richfaces tree.
I know how to use a .properties file as the data source for the nodes, and how to use some existign nodes to populate the nodes. Both are done with java code I can post here if needed.
But I dont know how to go about writing the java code to take the data from xml elements, and then somehow parse it to use in a richfaces tree.
Here is some info on what Im using with my project:
eclipse
simplexml
httpclient
jsf
richfaces libraryAdobe Newsbot hopes that the following resources helps you.
NewsBot is experimental and any feedback (reply to this post) on
its utility will be appreciated:
Flex 3 - Using item renderers with the AdvancedDataGrid
control:
Flex Data Visualization Developer's Guide / Advanced Data
Grid Controls and .... that the item renderer is for column 2 of
the control: <?xml version='1.0'?
Link:
http://livedocs.adobe.com/flex/3/html/advdatagrid_10.html
DataGrid ItemRenderer - Flex India Community | Google Groups:
Apr 28, 2008 ... My dataGrid itemRenderer displays a certain
icon and sets fontStyle ... <mx:Label id='txt' fontWeight='bold'
text='{data.subject}'/>
Link:
http://groups.google.com/group/flex_india/browse_thread/thread/bd30dd974da47d68
Flex 3 - DataGrid control:
<mx:Button label='Toggle Price Column'
click='price.visible = !price.visible;' ... Flex lets you populate
a DataGrid control from an ActionScript variable
Link:
http://livedocs.adobe.com/flex/3/html/dpcontrols_6.html
Flex Fun - Advanced DataGrid Topics:
You will notice that the datagrid doesn't have any header
labels or vertical ..... After the opening tag we add a
<mx:itemRenderer> telling Flex that we are
Link:
http://blog.paranoidferret.com/index.php/2007/08/29/flex-fun-advanced-datagrid-topics/
Flex 3 - Instrumenting RandomWalk events:
Flex Data Visualization Developer's Guide / Advanced Data
Grid Controls and Automation Tools ... itemRenderer = child as
Label; dispatchEvent(rEvent);
Link:
http://livedocs.adobe.com/flex/3/html/functest_components2_20.html
Adobe Flex 2: Advanced DataGrid:
Adobe Flex 2: Advanced DataGrid. Drop-in RadioButtonGroupBox;
runtime computed .... Anatole authored number of books and articles
on AJAX, XML, Internet and
Link:
http://flex.sys-con.com/node/311283
Disclaimer: This response is generated automatically by the
Adobe NewsBot based on Adobe
Community
Engine. -
How to insert more than 32k xml data into oracle clob column
how to insert more than 32k xml data into oracle clob column.
xml data is coming from java front end
if we cannot use clob than what are the different options availableAre you facing any issue with my code?
String lateral size error will come when you try to insert the full xml in string format.
public static boolean writeCLOBData(String tableName, String id, String columnName, String strContents) throws DataAccessException{
boolean isUpdated = true;
Connection connection = null;
try {
connection = ConnectionManager.getConnection ();
//connection.setAutoCommit ( false );
PreparedStatement PREPARE_STATEMENT = null;
String sqlQuery = "UPDATE " + tableName + " SET " + columnName + " = ? WHERE ID =" + id;
PREPARE_STATEMENT = connection.prepareStatement ( sqlQuery );
// converting string to reader stream
Reader reader = new StringReader ( strContents );
PREPARE_STATEMENT.setClob ( 1, reader );
// return false after updating the clob data to DB
isUpdated = PREPARE_STATEMENT.execute ();
PREPARE_STATEMENT.close ();
} catch ( SQLException e ) {
e.printStackTrace ();
finally{
return isUpdated;
Try this JAVA code. -
How to create XML data source/ and load data from a web service to BI
All,
I m trying to find a 'how to' document (or any document) that shows how to create an XML data source to load data directly from a web service or from an XML file.
I appreciate any help.Hi Mike,
Two more for you:----
/thread/111488 [original link is broken]
http://help.sap.com/saphelp_nw70/helpdata/en/e6/1dd53bb90cbb1ae10000000a11402f/content.htm
Regards,
Suman -
How to get the name of a Data Element of a generic Table!
Hi guys!
In my function i have the following import paramenter
i_outtab type standard table
now i import a table and i want to get the dataelement of the fields.
is there a way to do this??Hello Thomas
Perhaps the following sample report may be useful for you.
*& Report ZUS_SDN_RTTI_STRUCT_COMPONENTS
*& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1145711"></a>
*& Thread: How to get the name of a Data Element of a generic Table!
REPORT zus_sdn_rtti_struct_components.
TYPE-POOLS: abap.
TYPES: BEGIN OF ty_s_outtab.
TYPES: bukrs TYPE bukrs.
TYPES: kunnr TYPE kunnr.
TYPES: END OF ty_s_outtab.
DATA: gdo_data TYPE REF TO data.
DATA: gs_outtab TYPE ty_s_outtab.
DATA: go_typedescr TYPE REF TO cl_abap_typedescr,
go_structdescr TYPE REF TO cl_abap_structdescr,
go_datadescr type ref to cl_abap_datadescr.
DATA: gs_comp TYPE abap_compdescr,
gd_dtel type string,
gt_dfies type ddfields.
FIELD-SYMBOLS:
<gs_struct> TYPE ANY.
START-OF-SELECTION.
BREAK-POINT.
GET REFERENCE OF gs_outtab INTO gdo_data.
ASSIGN gdo_data->* TO <gs_struct>.
go_typedescr = cl_abap_typedescr=>describe_by_data( <gs_struct> ).
go_structdescr ?= go_typedescr.
BREAK-POINT.
LOOP AT go_structdescr->components INTO gs_comp.
go_datadescr = GO_STRUCTDESCR->GET_COMPONENT_TYPE( gs_comp-name ).
gd_dtel = go_datadescr->get_relative_name( ).
write: / syst-tabix, 'Data element =', gd_dtel.
ENDLOOP.
END-OF-SELECTION.
Regards
Uwe -
How to take XML data source from URL?
Hi,
I creating application which need to download some data from any web page. This page is creating via XSL (as stylesheet) .This XSL
process some XML "data source" and generate HTML page. I wanna ask if exist some way how to take this XML "data source"? If i used
URL and take InputStream I everytime obtain full generated HTML, JavaScript page - compiled by web browser. But if i look to "page
source" of this page in web browser i see just that XML data source which i need to take (only at start of this xml is way to xsl
style sheet).
But this problem i have only at my required page.If i tried to take another page with similar structure code, it was succesful.
Here is link : LINK
Why i dont have permision take clear xml from this page?What is so special?
Exist some way how to take this XML without generated html code?
Thank you.I apologize for my english. I try explain my problem again:
At this url [http://eu.wowarmory.com/item-info.xml?i=33677] is web page. If you look at "page source", web page is create via XML and XSLT. I need load this data source. I used DOMParser for that:
URL url = new URL("http://eu.wowarmory.com/item-info.xml?i=33677");
DOMParser parser = new DOMParser();
parser.parse(url);
XMLDocument doc = parser.getDocument();I get exception : Exception in thread "main" oracle.xml.parser.v2.XMLParserException: Expected '?>' instead of 'EOF'
If i used it at another page (for example [http://www.w3schools.com/XML/simplexsl.xml|http://www.w3schools.com/XML/simplexsl.xml] ), compile was successful and i can work with this XMLDocument and etc.
I try load it by InputStreamReader too:
URL url = new URL("http://eu.wowarmory.com/item-info.xml?i=33677");
try {
BufferedReader br = new BufferedReader(new InputStreamReader(url.openStream());
String line;
while ((line = br.readLine() != null) {
System.out.println(line);
} catch (IOException e) {
e.printStackTrace
}i get only compiled HTML code by web browser. At second page i load successfuly XML data - not compiled by browser.
Is possible to take original xml page source from this page? And what diferent is between this pages?
Thank you and i hope, you can translate this post without headache :-) If it will be necessary, i can more specify some details. -
How to delete XML Dat Source from BW System
Hello All,
How can i delete SOAP XML data source(6A *) from BW System.
Do I need to delte the generated RFC function module for the data source ??
Cheers
POPSHi Sumit Kalyan
Since your are using process order, I would like to know whether you are using process management function or not.
(Especially your are following GMP scenario ? This guide line is basically used pharmaceutical industry.
If you work with GMP scenario, before your are archiving your process order, you need to create electronic batch creation and archiving.
Then you can archive your process order and delete it completely from your system.
You can check whether your are using GMP scenario or not in your process order type.
(T-CD COR4).
If you are not. All you need to do is set deletion flag and deletion indicator to your process order and then archive your process order (you can use program PRARCHP1) by using archiving object PR_ORDER (you can call this object from t-cd sara or COAC).
I hope this information help you.
best regards
Keiji
Maybe you are looking for
-
Creation of order information profile for COID Transaction
Hi PP Friends, Could anybody tell me the procedure to creation a Order iformation profile to use in COID tranaction, I need to create a profile for the object Material. I have created but not showing in drop dowin of COID transaction. It look I misse
-
How do I print multiple pictures on a single page in iPhoto?
I'm trying to print different pictures on a single page using iPhoto. How do I do it?
-
Anyone know if Illustrator CS5.5 works with four monitors without crashing?
I just recently replaced my two AMD HD5850 graphic cards with a single HD7970. In my previous system configuration I had a total of four monitors (3 connected to one HD5850, and the fourth monitor to the secondary HD5850 card) This setup worked great
-
I want to share my Garage Band 10 project with another musician. How do I go about exporting it? Can I just e-mail the project file (is everything really just embedded in a single file?) or is their a process to exporting the project? A link to a kno
-
Hi Friends, What is a default layout variant? How to create one? Thanks in advance. Tamilarasan