Doing Math in XML Embedded Expression

Hello all.  I'm getting stumped by what I hope is a simple problem.  I'm trying to embed a simple formula incrementing a variable to act as a "line number" for an XML document.  Writingliteral XML in visual basic.  Here's what
the code looks like:
<%= From d In orderData
Select <ItemOut quantity=<%= d.OrderQuantity %> lineNumber=<%= i %>>
<ItemID>
<SupplierPartID><%= d.VendorPartNo %></SupplierPartID>
</ItemID>
<ItemDetail>
<UnitPrice>
<Money currency="USD"><%= d.PricePerPackage %></Money>
</UnitPrice>
<Description xml:lang="en"><%= d.Description %></Description>
<UnitOfMeasure><%= d.OrderUOM %></UnitOfMeasure>
</ItemDetail>
<%= i = i + 1 %>
</ItemOut>
%>
I was expecting each iteration of d in OrderData to tick i + 1, however, it is simply returning "false".  See the output XML here:
<ItemOut quantity="1" lineNumber="1">
<ItemID>
<SupplierPartID>99999</SupplierPartID>
</ItemID>
<ItemDetail>
<UnitPrice>
<Money currency="USD">0.00</Money>
</UnitPrice>
<Description xml:lang="en">Tub and Tile Caulk Biscuit</Description>
<UnitOfMeasure>cs</UnitOfMeasure>
</ItemDetail>false</ItemOut>
<ItemOut quantity="1" lineNumber="1">
<ItemID>
<SupplierPartID>999999</SupplierPartID>
</ItemID>
<ItemDetail>
<UnitPrice>
<Money currency="USD">0.00</Money>
</UnitPrice>
<Description xml:lang="en">Tub and Tile Caulk Almond</Description>
<UnitOfMeasure>cs</UnitOfMeasure>
</ItemDetail>false</ItemOut>

I tried making a call to a function instead, where the function did the incrementing and returned the integer, but that is returning "False" as well.
<%= From d In orderData
Select <ItemOut quantity=<%= d.OrderQuantity %> lineNumber=<%= incrementI(i) %>>
<ItemID>
<SupplierPartID><%= d.VendorPartNo %></SupplierPartID>
</ItemID>
<ItemDetail>
<UnitPrice>
<Money currency="USD"><%= d.PricePerPackage %></Money>
</UnitPrice>
<Description xml:lang="en"><%= d.Description %></Description>
<UnitOfMeasure><%= d.OrderUOM %></UnitOfMeasure>
</ItemDetail>
</ItemOut>
%>
Resulting XML:
Still stumped as to what is going on here
<ItemOut quantity="1" lineNumber="false">
<ItemID>
<SupplierPartID>999999</SupplierPartID>
</ItemID>
<ItemDetail>
<UnitPrice>
<Money currency="USD">0.00</Money>
</UnitPrice>
<Description xml:lang="en">Tub and Tile Caulk Biscuit</Description>
<UnitOfMeasure>cs</UnitOfMeasure>
</ItemDetail>
</ItemOut>
<ItemOut quantity="1" lineNumber="false">
<ItemID>
<SupplierPartID>999999</SupplierPartID>
</ItemID>
<ItemDetail>
<UnitPrice>
<Money currency="USD">0.00</Money>
</UnitPrice>
<Description xml:lang="en">Tub and Tile Caulk Almond</Description>
<UnitOfMeasure>cs</UnitOfMeasure>
</ItemDetail>
</ItemOut>

Similar Messages

  • Does InDesign CC XML support Footnotes/Endnotes and Index Markers?

    Hi,
    Does InDesign CC XML support Footnotes/Endnotes and Index Markers already?
    Can anyone give me the list of limitations in XML to InDesign.
    Thanks in advance.

    Hello MW,
    First of all thanks for your reply. Yes I can create an XSLT to change the XML stream ready for import into InDesign template that we have. I have also downloaded the Refoot.js and UnFoot.js. For the footnotes I have already workaround for that, but how about the index-markers and cross-references do you have any idea on how to deal with it?
    Actually I have already XSLT script that will convert XML to InDesign Tagged Text. But our client want us to use the XML embedded in InDesign so they can just export the InDesign back to XML easily. I know that there are limitations in XML to InDesign, but we need to proved to them that using XML is not good to use in this workflow because of those limitations. So I'm looking for the list so I can send to them to tell them that what they want is not doable since there are a lot of things that XML in InDesign can't do.
    We have existing XML to InDesign round tripping workflow; 1) first we have the XSLT that will convert XML to InDesign Tagged text including footnotes, endnotes cros-refeneces and index-markers; 2) once the layout is final will export the InDesign document to HTML; 3) use XSLT script to convert exported HTML to XML. But it seems this workflow is not efficient to them. Can anyone suggest what other workflow for round tripping XML to InDesign.
    Again thank you very much for your quick reply.
    Regards,
    Elmer

  • My airport utility does not find my airport express device

    My airport utility does not find my airport express device

    In order for the AirPort Utility on your iOS device to find the Express, both need to be connected to the same Wi-Fi network. By default, the Express will broadcast an unsecured wireless network with a network name of something like: Apple Network NNNNNN. Can you iOS device find this network?

  • Does JMS parse xml content in TextMessages

              Hi
              I am working on WLS 6.1sp2 and I am using jms TextMessage type of message to
              send XML messages from one subsystem to another. I have added an XML registry
              for my version of XML parser. Now I do not have any entries for the entity declarations
              nor for the parser entries in the registry.
              When I send in an XML message in a TextMessage envelope I find the following
              errors in the log.
              <Jun 9, 2003 3:56:57 PM PDT> <Error> <XML> <Failed to parse given XML document.
              Failed to retrieve PUBLIC id. The root element is required in a well-formed docu
              ment.>
              <Jun 9, 2003 3:56:57 PM PDT> <Error> <XML> <Failed to open XML document. Failed
              to retrieve PUBLIC id or SYSTEM id from the document. Decrease the number of cha
              r between the beginning of the document and its root element.>
              <Jun 9, 2003 3:56:57 PM PDT> <Error> <XML> <Failed to parse given XML document.
              Failed to retrieve SYSTEM id. The root element is required in a well-formed docu
              ment.>
              <Jun 9, 2003 3:56:57 PM PDT> <Error> <XML> <Failed to open XML document. Failed
              to retrieve PUBLIC id or SYSTEM id from the document. Decrease the number of cha
              r between the beginning of the document and its root element.>
              <Jun 9, 2003 3:56:57 PM PDT> <Error> <XML> <Failed to parse given XML document.
              Failed to retrieve root tag. The root element is required in a well-formed docum
              ent.>
              <Jun 9, 2003 3:56:57 PM PDT> <Error> <XML> <Could not instantiate factory class
              specified in the Server console. Invalid parameters: at least one of publicId,
              s
              ystemId, rootTag must be non-null>
              [ChangeAwareClassLoader] : Name is : META-INF/services/org.apache.xerces.xni.par
              ser.XMLParserConfiguration
              <Jun 9, 2003 3:56:57 PM PDT> <Error> <XML> <Failed to open XML document. Failed
              to retrieve PUBLIC id or SYSTEM id from the document. Decrease the number of cha
              r between the beginning of the document and its root element.>
              <Jun 9, 2003 3:56:57 PM PDT> <Error> <XML> <Failed to parse given XML document.
              Failed to retrieve PUBLIC id. The root element is required in a well-formed docu
              ment.>
              Now from the logs I understand that the message is being parsed and since the
              parser does not find any PUBLIC ID or SYSTEM id it dumps the error, since I am
              using schemas there is none of the PUBLIC and SYSTEM ids in my xml, also this
              is not logged by any component of my subsystems, this is a weblogic XML Service
              log and when I trace through the code I find that it comes up after the first
              subsystem sends the message and before the second subsystem receives it.
              The question then is does JMS parse XML content in TextMessages and if so how
              can I disable that parsing?
              Thanks
              Sandeep
              

    JMS does not automatically parse TextMessages. Check the XML declaration in
              your application's deployment descriptors. That's often the source of this
              error.
              FYI, you can use XMLMessage for xml payloads. As far as I can remember, the
              XMLMessage is an extension of the TextMessage with xml parsing built in.
              Adarsh
              "Sandeep Nayak" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hi
              >
              > I am working on WLS 6.1sp2 and I am using jms TextMessage type of message
              to
              > send XML messages from one subsystem to another. I have added an XML
              registry
              > for my version of XML parser. Now I do not have any entries for the entity
              declarations
              > nor for the parser entries in the registry.
              >
              > When I send in an XML message in a TextMessage envelope I find the
              following
              > errors in the log.
              >
              > <Jun 9, 2003 3:56:57 PM PDT> <Error> <XML> <Failed to parse given XML
              document.
              > Failed to retrieve PUBLIC id. The root element is required in a
              well-formed docu
              > ment.>
              > <Jun 9, 2003 3:56:57 PM PDT> <Error> <XML> <Failed to open XML document.
              Failed
              > to retrieve PUBLIC id or SYSTEM id from the document. Decrease the number
              of cha
              > r between the beginning of the document and its root element.>
              > <Jun 9, 2003 3:56:57 PM PDT> <Error> <XML> <Failed to parse given XML
              document.
              > Failed to retrieve SYSTEM id. The root element is required in a
              well-formed docu
              > ment.>
              > <Jun 9, 2003 3:56:57 PM PDT> <Error> <XML> <Failed to open XML document.
              Failed
              > to retrieve PUBLIC id or SYSTEM id from the document. Decrease the number
              of cha
              > r between the beginning of the document and its root element.>
              > <Jun 9, 2003 3:56:57 PM PDT> <Error> <XML> <Failed to parse given XML
              document.
              > Failed to retrieve root tag. The root element is required in a well-formed
              docum
              > ent.>
              > <Jun 9, 2003 3:56:57 PM PDT> <Error> <XML> <Could not instantiate factory
              class
              > specified in the Server console. Invalid parameters: at least one of
              publicId,
              > s
              > ystemId, rootTag must be non-null>
              > [ChangeAwareClassLoader] : Name is :
              META-INF/services/org.apache.xerces.xni.par
              > ser.XMLParserConfiguration
              > <Jun 9, 2003 3:56:57 PM PDT> <Error> <XML> <Failed to open XML document.
              Failed
              > to retrieve PUBLIC id or SYSTEM id from the document. Decrease the number
              of cha
              > r between the beginning of the document and its root element.>
              > <Jun 9, 2003 3:56:57 PM PDT> <Error> <XML> <Failed to parse given XML
              document.
              > Failed to retrieve PUBLIC id. The root element is required in a
              well-formed docu
              > ment.>
              >
              > Now from the logs I understand that the message is being parsed and since
              the
              > parser does not find any PUBLIC ID or SYSTEM id it dumps the error, since
              I am
              > using schemas there is none of the PUBLIC and SYSTEM ids in my xml, also
              this
              > is not logged by any component of my subsystems, this is a weblogic XML
              Service
              > log and when I trace through the code I find that it comes up after the
              first
              > subsystem sends the message and before the second subsystem receives it.
              >
              > The question then is does JMS parse XML content in TextMessages and if so
              how
              > can I disable that parsing?
              >
              > Thanks
              >
              > Sandeep
              

  • Why does border appear around embedded video?

    Hello,
    I have an embedded YouTube video in a page on my site. It was working fine for a while but I've just discovered that there is now a black edge showing on the left, right and bottom of the video? I created a white round cornered frame within Premier so that it's part of the video. I did this as the pgae it's embedded in is white so that when it plays back it appears seamless and with curved edges to match it's container. This worked fine for a week or so but now it has these black edges? Can anybody tell me why? You can see for yourself at www.glovesanddoves.com. Go to the fighters page and you'll see the video at the bottom. The video's width is a multiple of 16 and the ratio is 16:9 at 384px X 216px. The containg Divs are also set to these measurements.
    I've attached a screenshot below:
    Any help would be much appreciated.
    Jack

    It only seems to be affecting the page when viewed in Safari although it was working fine for over a week before today?
    Date: Thu, 11 Oct 2012 16:39:47 -0600
    From: [email protected]
    To: [email protected]
    Subject: Why does border appear around embedded video?
        Re: Why does border appear around embedded video?
        created by Ken Binney in Dreamweaver General - View the full discussion
    No prob in FF 15.0.1or IE 8  on PC - Rounded corners boxes on both
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4767926#4767926
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4767926#4767926
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4767926#4767926. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver General by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How does Math.ceil work for values greater than 0 and less than 1?

    What does Math.ceil(0.67) return? I thought it would round it off to 1. Does it not? Which method returns 1? Can someone please help me?

    pradeep_chanda wrote:
    Is that the problem - long/long ??
    Code:
    long suggestedOrderQuantity = 20,000; //computed value
    long minimumOrderQuantity = 198,000; //computed value
    int multiple = (int) Math.ceil(suggestedOrderQuantity / minimumOrderQuantity));
    value of multiple is 0.You really need to post complete code.
    public class Temp {
         public static void main(String[] args) throws Exception{
              long a = 20000;
              long b = 198000;
              System.out.println(a / b);
    }This prints 0. Do you know why?

  • "Missing Profile - The doc does not have an embedded CMYK profile"

    For the first time ever last Wednesday each time I open a file in AI - CS3 I get the same message: "Missing Profile - The doc does not have an embedded CMYK profile". I looked in library>colorsync>profiles and sure enough they were gone? I downloaded new profiles from Adobe, installed them in library>colorsync>profiles - and still the same thing with each file I open. I dragged AI to the trash, re-installed AI from my disc repeated the process with the same results - HELP!
    I don't seem to be able to find any info on the Adobe forum, I realize I need to upgrade but for now what is the solution - Thanks in advance. Boatingislife!

    Hi Larry, Thanks for your reply along with Muppet Mark, If I changed the color settings originally it was not my intension, I was simply just opening the next project to work on and viola’ “missing profiles”.
    Attachment (picture) 7 was my last setting for color prior to your email, and yes I was messing around with this last night comparing it to one of our old G4’s, so I can’t remember where it started out before I got my hands on it.
    Attachment (picture) 8 is my current settings based on your email recommendations.
    Attachment (picture) 6 is the message I receive when I open any files created prior to these changes I just made. However after I open and resave the file I no longer receive this (picture 6) message.
    My question is will my color be back to where it was before the problem started last week. In looking over one of the files I opened (I design/build transportation maps btw) most of the color is where I usually have it set however some colors were fractional as if they were converted from spot colors. SO I’m not sure what to do except go through all the known colors and make sure they are where I usually would set them, or do you have a better suggestion.
    Oh by the way – for all you guys that are helping lunch is on me at McDonalds on Michigan St in Grand Rapids, MI!!
    #7
    #8
    #6

  • How does XDB optimize XML Query?

    I found the query speed of XDB is much slower than Berkeley XML DB.
    How does XDB optimize XML Query?
    Are there any documents on this subject?
    And can XDB create indices on XMLType ( e.g. the index on element/attribute value and/or structure index)? if yes, how to do that?

    lezhou had a valid question and asked about:
    "I found the query speed of XDB is much slower than Berkeley XML DB"
    "How does XDB optimize XML Query?"
    These point to a "XML DB Concepts Guide", which does not yet exist.
    The procedures are explained, the methods are explained. If you enable event tracing as described in the XMLDB Developers Guide 10gR2, you will see statements in your trace file which will tell you more about the XML DB architecture (and therefor you can deduct performance impact) then the manual will reveal.
    An other example:
    The xdbconfig.xsd file is neatly explained - in regards of http-port-etc
    But not what the implecations are if you alter one of the other ones (the not explained parameters).
    If you know the architecture (GROUND LEVEL), you can give an correct answer to the initial question "I found the query speed of XDB is much slower than Berkeley XML DB. How does XDB optimize XML Query?"
    The balanced tree index is constructed the same way (on the same theory) in Oracle, DB2, but apparantly X is faster because in with the same buildup/architecture/databasestructure for both products, with the same data, with the same X --> value Y is beter constructed and delivers a better performance.
    apples = apples
    oracle xmldb = berkeley xmldb --> how can i test the o.apples=b.apples and that under these circumstances o.apples are faster ;-)
    THEREFOR:
    "I have to disagree a little bit...("It speaks about all these in detail").
    Still waiting for the XMLDB Concepts Guide / Administrators Guide / Performance Guide.

  • This version of airport utility does not support my airport express

    I have just bought a new MAc and am trying to add my old airport express base station on to my exisiitng wireless network so that I can use it to stream music. I had set it up ages ago with my PC but didn't really use it.
    I can get the aiport utility to see it but it tells me that this version does not support my airport express.  Help!

    Unfortunately, Apple has dropped support for the older AirPort routers in their newer operating systems.
    You can still configure and administer the older AirPort Express, but you will need to have (or borrow) a Mac running Leopard or Snow Leopard, or a PC.

  • "Source File does not match XML Schema"

    Using MDM 5.5 SP4 Patch 2 (Build 5.5.34.26) on a 32-bit system (WinServer 2003, Enterprise Edition SP1.
    This source file and schema have been verified by SAP Tech Support and again using Altova XML Spy. The schema was loaded into MDM through the console and the source file was successfully mapped against it and the data manually imported into MDM. The customer record was then cleansed using the Data Manager and the import map was used to create an inbound port. However, when the Import Server goes to import the file using the map, the following error is dropped into the log: "Source File does not match XML Schema". Has anyone else seen this error?
    Thanks,  Don
    IMPORT LOG ENTRY:
    <?xml version="1.0" encoding="utf-8"?>
    <?xml-stylesheet type="text/xsl" href="MDM_Log.xsl"?>
    <MDM_Log version="1.0" path="H:PROGRA~1SAPMDM~1.5IMPORT~1TempMDIS_TASK@@U@[email protected]"
    >
         <Open ts-long="18:24:35 GMT, Saturday, February 03, 2007" ts="2007/02/03 18:24:35.108 GMT" pid="8640" host="bp1tulap452" compile-type="RELEASE_32">
              <Trace ts="2007/02/03 18:24:35.249 GMT" tid="7216" entry-no="3">[BP US FUELS CUSTOMER MASTER] Import Task Started. Chunk size[50000], No. parallel chunks[1]</Trace>
              <Trace ts="2007/02/03 18:24:43.890 GMT" tid="5980" entry-no="11">xSaxParser: Starting.</Trace>
              <Trace ts="2007/02/03 18:24:43.937 GMT" tid="5980" entry-no="19">xSaxParser: Ending.</Trace>
              <Trace ts="2007/02/03 18:24:43.937 GMT" tid="5980" entry-no="20">Source file does not conform to XML Schema!<LINE-FEED/></Trace>
              <Trace ts="2007/02/03 18:24:45.312 GMT" tid="7216" entry-no="29">[RESPOSITORY]Import Task Finished. Chunk size[50000], No. parallel chunks[1]</Trace>
         </Open>
    </MDM_Log>
    SOURCE FILE:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns1:CustomerCreateResp xmlns:ns1="urn:bp:xi:up:re:cust_mdm:cmdm:pr5:100">
    - <CUSTOMER>
    - <item>
      <CUSTOMERNO>0090154474</CUSTOMERNO>
      <MDMCUSTOMER>2463</MDMCUSTOMER>
      <CREATE_DATE>22/01/2007,11:43:49</CREATE_DATE>
    - <RETURN>
      <TYPE />
      <MESSAGE />
      </RETURN>
    - <PT_CONTPART_RETURN>
    - <item>
      <MDM_CONTACT>0000000001</MDM_CONTACT>
      <CONTACT>0001111119</CONTACT>
      </item>
    - <item>
      <MDM_CONTACT>0000000004</MDM_CONTACT>
      <CONTACT>0002222229</CONTACT>
      </item>
      </PT_CONTPART_RETURN>
    - <PARTNERS>
    - <item>
      <CUSTOMERNO>0090154474</CUSTOMERNO>
      <PARTNER_FUNCTION>RE</PARTNER_FUNCTION>
      <PARTNER_NUMBER>0001333329</PARTNER_NUMBER>
      <DEFAULT_PARTNER>X</DEFAULT_PARTNER>
      </item>
    - <item>
      <CUSTOMERNO>0090154474</CUSTOMERNO>
      <PARTNER_FUNCTION>WE</PARTNER_FUNCTION>
      <PARTNER_NUMBER>0001555559</PARTNER_NUMBER>
      <DEFAULT_PARTNER />
      </item>
      </PARTNERS>
      </item>
      </CUSTOMER>
      </ns1:CustomerCreateResp>
    SCHEMA:
       <?xml version="1.0" encoding="UTF-8" ?>
    - <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:bp:xi:up:re:cust_mdm:cmdm:pr5:100" targetNamespace="urn:bp:xi:up:re:cust_mdm:cmdm:pr5:100" elementFormDefault="unqualified">
      <xsd:element name="CustomerCreateResp" type="CustomerCreateResp" />
    - <xsd:complexType name="CustomerCreateResp">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">682cc2d0aa6e11db9b800015c5888624</xsd:appinfo>
      </xsd:annotation>
    - <xsd:sequence>
    - <xsd:element name="CUSTOMER">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">f68988f0a02e11db94bb00166f98336c</xsd:appinfo>
      </xsd:annotation>
    - <xsd:complexType>
    - <xsd:sequence>
    - <xsd:element name="item" maxOccurs="unbounded">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b20a75811dba9d400166f983d94</xsd:appinfo>
      </xsd:annotation>
    - <xsd:complexType>
    - <xsd:sequence>
    - <xsd:element name="CUSTOMERNO" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b21a75811db9c4800166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="MDMCUSTOMER" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b22a75811dbcbac00166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="CREATE_DATE" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b23a75811dbcc0300166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="RETURN" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b24a75811db8d5500166f983d94</xsd:appinfo>
      </xsd:annotation>
    - <xsd:complexType>
    - <xsd:sequence>
    - <xsd:element name="TYPE" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b25a75811db876d00166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="MESSAGE" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b26a75811db85c400166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
    - <xsd:element name="PT_CONTPART_RETURN" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b27a75811db8ca900166f983d94</xsd:appinfo>
      </xsd:annotation>
    - <xsd:complexType>
    - <xsd:sequence>
    - <xsd:element name="item" minOccurs="0" maxOccurs="unbounded">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b28a75811dbaae100166f983d94</xsd:appinfo>
      </xsd:annotation>
    - <xsd:complexType>
    - <xsd:sequence>
    - <xsd:element name="MDM_CONTACT" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b29a75811dbaade00166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="CONTACT" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b2aa75811dbc24c00166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
    - <xsd:element name="PARTNERS" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b2ba75811dbb74500166f983d94</xsd:appinfo>
      </xsd:annotation>
    - <xsd:complexType>
    - <xsd:sequence>
    - <xsd:element name="item" minOccurs="0" maxOccurs="unbounded">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b2ca75811db9f6500166f983d94</xsd:appinfo>
      </xsd:annotation>
    - <xsd:complexType>
    - <xsd:sequence>
    - <xsd:element name="CUSTOMERNO" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b2da75811db9bd800166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="PARTNER_FUNCTION" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b2ea75811dbb84100166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="PARTNER_NUMBER" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b2fa75811db852800166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
    - <xsd:element name="DEFAULT_PARTNER" type="xsd:string" minOccurs="0">
    - <xsd:annotation>
      <xsd:appinfo source="http://sap.com/xi/TextID">72ea9b30a75811db968400166f983d94</xsd:appinfo>
      </xsd:annotation>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:sequence>
      </xsd:complexType>
      </xsd:schema>

    You have to define the namespace in the URI field of XML Schmea in Console.
    In MDM Console,
    Admin -> XML Schemas -> Create XML Schema
    You have to specify the namespace urn:bp:xi:up:re:cust_mdm:cmdm:pr5:100 in the URI property.
    Please update this post if fixed your problem.

  • Flash player does not load xml object embedded in a web page.

    Sample pulled from webpage
    var fo = new FlashObject("labeling.swf?xmlfile=labeling4.xml&restart=true&actNum=4:7", "labeling", "600", "500", "10", "#eeeeee");
       fo.addParam("allowScriptAccess", "sameDomain");
       fo.addParam("quality", "high");
       fo.addParam("scale", "noscale");
       fo.addParam("redirectUrl", "http://get.adobe.com/flashplayer");
       fo.addParam("wmode", "transparent");
       fo.write("activity-4");
    In IE 9 / 8 this is what I get.
    If you need more information please let me know.
    Any help with this problem is greatly appreciated.

    Would you mind reposting this question over on the Flash Professional forums?  This forum is primarily for end users, the Pro forums will get you in touch with a wider developer audience.
    If you feel like this is a bug in the player, please open a new bug report on this over at bugbase.adobe.com.  When adding the bug, please include your sample code, swf, or URL so we can quickly test this out internally.  If you'd like to keep this private, feel free to email the attachment to me directly ([email protected]). 
    Thanks,
    Chris

  • XML Embedded in XML

    What are the ramifications of embedding an XML document in another XML document when the parser is the JAXP DOM parser? Specifically; if my schema says that the embedded XML is of type "string", then the parser chokes when it sees the embedded XML tags in the data region - it comes back complaining that the field is a simple type and must have no children.
    Is it common to embed XML in XML like this ...is it an intended/envisioned/supported use of the JAXP parser? If so, there must be a standard way of making it work. In this case an XML message is being used to send an updated (.xsd)Schema - embedded in the XML document as one of its fields.

    Okay that's helpful but the intent really is to have the entire embedded xml field treated as text such that it can be retrieved just as the contents of a text field can be retrieved (in this case the embedded xml is an actual XML Schema). CDATA won't work in this case (if I understand correctly) since the embedded XML does indeed have newlines. If I use the "any" type, the embedded XML is treated as XML - not as text- so it can't be retrieved as the "contents" of a single field (using getNodeValue() for example). I can give it a "lax" or "skip" attribute but it either way I can't retrieve it as I would one large text field. That's what I'm really trying to find out ...if it's possible to have the embedded XML file treated as a single text field that can be retrieved as a single field.

  • DataGrid does not display XML data

    Hello, and thanks for reading this...
    I am having a problem displaying XMLList data in a DataGrid.
    The data is coming from a Tree control, which is receiving it
    from a database using HTTPService.
    The data is a list of "Job Orders" from a MySQL database,
    being formatted as XML by a PHP page.
    If it would be helpful to see the actual XML, a sample is
    here:
    http://www.anaheimwib.com/_login/get_all_orders_test2.php
    All is going well until I get to the DataGrid, which doesn't
    display the data, although I know it is there as I can see it in
    debug mode. I've checked the dataField property of the appropriate
    DataGrid column, and it appears correct.
    Following is a summary of the relevant code.
    ...An HTTPService named "get_all_job_orders" retrieves
    records from a MySQL database via PHP...
    ...Results are formatted as E4X:
    HTTPService resultFormat="e4x"
    ...An XMLListCollection's source property is set to the
    returned E4X XML results:
    ...The "order" node is what is being used as the top-level of
    the XML data.
    <mx:XMLListCollection id="jobOrdersReviewXMLList"
    source="{get_all_job_orders.lastResult.order}"/>
    ...The "jobOrdersReviewXMLList" collection is assigned to be
    the dataProvider property of a Tree list, using the @name syntax to
    display the nodes correctly, and a change event function is defined
    to add the records to a DataGrid on a separate Component for
    viewing the XML records:
    <mx:Tree dataProvider="{jobOrdersReviewXMLList}"
    labelField="@name"
    change="jobPosForm.addTreePositionsToDG(event)"/>
    ...Here is the relevant "jobPosForm" code (the Job Positions
    Form, a separate Component based on a Form) :
    ...A variable is declared:
    [Bindable]
    public var positionsArray:XMLList;
    ...The variable is initialized on CreationComplete event of
    the Form:
    positionsArray = new XMLList;
    ...The Tree's change event function is defined within the
    "jobPosForm" Component.
    ...Clicking on a Tree node fires the Change event.
    ...This passes an event object to the function.
    ...This event object contains the XML from the selected Tree
    node.
    ...The Tree node's XML data is passed into the positionsArray
    XMLList.
    ...This array is the dataProvider for the DataGrid, as you
    will see in the following block.
    public function addTreePositionsToDG(event:Event):void{
    this.positionsArray = selectedNode.positions.position;
    ...A datagrid has its dataProvider is bound to
    positionsArray.
    ...(I will only show one column defined here for brevity.)
    ...This column has its dataField property set to "POS_TITLE",
    a field in the returned XML record:
    <mx:DataGrid width="100%" variableRowHeight="true"
    height="75%" id="dgPositions"
    dataProvider="{positionsArray}" editable="false">
    <mx:columns>
    <mx:DataGridColumn width="25" headerText="Position Title"
    dataField="POS_TITLE"/>
    </mx:columns>
    </mx:DataGrid>
    In debug mode, I can examine the datagrid's dataProvider
    property, and see that the correct XML data from the Tree control
    is present. However, The datagrid does not display the data in any
    of its 6 columns.
    Does anyone have any advice?
    Thanks for your time.

    Hello again,
    I came up with a method of populating the DataGrid from the
    selected Item of a Tree Control which displays complex XML data and
    XML attributes. After the user clicks on a Tree branch, I call this
    function:
    public function addTreePositionsToDG(event:Event):void{
    //Retrieve all "position" nodes from tree.
    //Loop thru each Position.
    //Add Position data to the positionsArray Array Collection.
    //The DataGrid dataprovider is bound to this array, and will
    be updated.
    positionsArray = new ArrayCollection();
    var selectedNode:Object=event.target.selectedItem;//Contains
    entire branch.
    for each (var position:XML in
    selectedNode.positions.position){
    var posArray:Array = new Array();
    posArray.PK_POSITIONID = position.@PK_POSITIONID;
    posArray.FK_ORDERID = position.@FK_ORDERID;
    posArray.POS_TITLE = position.@POS_TITLE;
    posArray.NUM_YOUTH = position.@NUM_YOUTH;
    posArray.AGE_1617 = position.@AGE_1617;
    posArray.AGE_1821 = position.@AGE_1821;
    posArray.HOURS_WK = position.@HOURS_WK;
    posArray.WAGE_RANGE_FROM = position.@WAGE_RANGE_FROM;
    posArray.WAGE_RANGE_TO = position.@WAGE_RANGE_TO;
    posArray.JOB_DESCR = position.@JOB_DESCR;
    posArray.DES_SKILLS = position.@DES_SKILLS;
    positionsArray.addItem(posArray);
    So, I just had to manually go through the selected Tree node,
    copy each XML attribute into a simple Array, then ADD this Array to
    an ArrayCollection being used as the DataProvider for the DataGrid.
    It's not elegant, but it works and I don't have to use a Label
    Function, which was getting way too complicated. I still think that
    Flex should have an easier way of doing this. There probably is an
    easier way, but the Flex documentation doesn't provide an easy path
    to it.
    I want to thank you, Tracy, for the all the help. I checked
    out the examples you have at www.cflex.net and they are very
    helpful. I bookmarked the site and will be using it as a resource
    from now on.

  • Xbox 360 does not connect to Airport Express wireless network

    I'm at my wits ends. I got a my son a wireless adapter for Christmas and for the life of me cannot get it to work. We have looked at all the discussion forums on the internet and did A LOT of trial and error and still to connection. On one occasion the xbox 360 wireless adapter saw the network and once it tried to connect is dropped.
    I have a Wii, two windows PC's, a printer and a PowerMac all connected to my wireless router. The xbox and the Airport Express both have the latest firm ware update.
    These are some of the things I have noticed and tested:
    1. Connection is Cable Modem>Vonage Router>Airport Express....wireless to Xbox360
    2. I have taken the vonage router out to go
    Cable Modem>Airport Express...wireless to Xbox360 and still no luck.
    3. I was suspecting a double NAT and contacted Comcast to see if I could put the cable modem in bridge mode and they couldn't help me.
    4. The network is open (no security)
    5. The wireless adapter is a steady red...then when I tell it to find the network it drops out (LED turns off)
    6. I have tried to see if I have a double NAT but tracing in the network utility does not show anything.
    7. I have tried to place the Airport express in bridge mode and when I updated, it doesn't not come back up and I have to do a hard reset to communicate to it again.
    8. There was one instance when the wireless adapter LED was green for about 15 secs and when we tried to connect it dropped out completely (no LED light).
    9. I know it works because in the various forums I have read that people have it working.
    I called xbox support and they were not very helpful...wouldn't even search similar cases...I have tried everything I could think of and I'm lost any assistance is appreciated.
    Victor

    Tesserax,
    What is the make/model of the Comcast-provided modem? How about the Vonage router? Is this router also wireless? Finally, I assume that prior to introducing the AirPort Express Base Station (AX), the modem & Vonage router were working properly ... correct?
    Thanks for your interest in helping me. To answer your questions:
    1. The comcast make and model for the cable modem is Scientific American Model#DPX2203
    2. The vonage router is ethernet hard wired connected between the cable modem and the apple express wireless route. The vonage router is model#VDV21-VD
    3. With the exception of the wireless connection between the Xbox 360 and AX; everything works fine.
    4. The AX is running Apple firm ware 6.3
    In the discussion I have read of similar problems and have tried them all to no avail. I'm sure the is a fix to this problem because of people in the discussion groups have had the same issues. I don't suspect the wireless router because it has a steady red light and only turns off when we do the network test or scan for networks.
    Victor

  • Use field value in xml binding expression

    Hi all.
    I'm trying to access dropdownlist selected value from a binding expression.
    I have a dropdownlist called rooms which is bound to some XML data. When the selection changes I woud like to access that value in another dropdownlist called members which is also bound to some XML data.
    The expression I tried is:
    $record.room.[roomname==$form.company.mainform.rooms.rawValue].member[*]
    I'm calling this code on the rooms.changed event (alsop tried on rooms.exit event):
         members.execCalculate();
    Aparently $form.company.mainform.rooms.rawValue doesn't return the selected value of the rooms dropdownlist.
    Is there a way to get the selected event from a different form and re-calculate binding of the field?
    thanx

    Binding is not dynamic ...meaning that it is set when the form is rendered and cannot be changed on the fly.
    Paul

Maybe you are looking for