All listing element must have index,name and value?

when i trying to convert a fmb file to xml, it shows a warning.
All listing element must have index,name and value...
how to resolve this..
Edited by: skud on Mar 9, 2011 6:03 AM

when i trying to convert a fmb file to xml, it shows a warning.
All listing element must have index,name and value...
how to resolve this..
Edited by: skud on Mar 9, 2011 6:03 AM

Similar Messages

  • Query to get parameter name and value after ran the conccurent program

    Hi All,
    Query to get the parameter name and value for completed concurrent program using the request id. can any one help me in this regard.
    Thanks,
    Red.

    Red,
    I have tried the same query and it works properly here.
    I have submitted "Purge Signon Audit data" concurrent program with "Audit Date" parameter set to 01-06-2009, and here is the query output:
    SQL> select request_id, phase_code, status_code,
    argument_text, argument1
    from fnd_concurrent_requests
    where request_id = '739664';
    REQUEST_ID P S ARGUMENT_TEXT        ARGUMENT1
        739664 C C 2009/06/01 00:00:00  2009/06/01 00:00:00Regards,
    Hussein

  • Object name must have between 000003 and 000009 characters

    Hi BW Experts,
    When I am trying to create a cube I am getting the below error message:
    Object name Z0FIGL_01 must have between 000003 and 000009 characters. Message no. R7112
    It would be great if some one can help me to resolve the issue...
    Regards,
    Reddy

    Hi
    The infocube technical name must be in between 3 to 9 characteristics length
    i.e,Min 3 Char & Max 9 Char
    is ZOFIGL_01 is ur object name ?its defined within limits,need to verify:)
    hope this helps
    Sriman
    Edited by: Sreeman on Apr 11, 2008 9:34 PM

  • Exception on JaxRpc invoke trailing block elements must have an idattribute

    hi all ,
    I am calling a target system from a bpel process .
    but while invoking i am getting the below error .
    ""*exception on JaxRpc invoke: trailing block elements must have an id attribute*""
    my schema file is as below ,
    can any one let us know the reason behind the issue .
    -----------------------------------xsd file----------------------------------------
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsd:schema elementFormDefault="qualified"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:tns="http://www.viva.com.bh/vivaportal"
    targetNamespace="http://www.viva.com.bh/vivaportal"
    xmlns="http://www.viva.com.bh/vivaportal">
    <xsd:complexType name="error">
    <xsd:sequence>
    <xsd:element name="errorCode" type="xsd:int" minOccurs="0"/>
    <xsd:element name="errorDescription" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="preRegistrationCheck"/>
    <xsd:complexType name="preRegistrationCheckRequestType" xmlns:tns="http://www.viva.com.bh/vivaportal" >
    <xsd:sequence>
    <xsd:element name="MSISDN" type="xsd:int" minOccurs="0" />
    <xsd:element name="timestamp" type="xsd:dateTime" minOccurs="0" />
    <xsd:element name="source" type="xsd:string" minOccurs="0" />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="preRegistrationCheckResponseType">
    <xsd:sequence>
    <xsd:element name="resultCode" type="xsd:int" minOccurs="0" />
    <xsd:element name="PIN" type="xsd:int" minOccurs="0" />
    <xsd:element name="error" type="tns:error" minOccurs="0" />
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="prePasswordResetCheck"/>
    <xsd:complexType name="prePasswordResetCheckRequestType">
    <xsd:sequence>
    <xsd:element name="MSISDN" type="xsd:int" minOccurs="0"/>
    <xsd:element name="timestamp" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="source" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="prePasswordResetCheckResponseType">
    <xsd:sequence>
    <xsd:element name="resultCode" type="xsd:int" minOccurs="0"/>
    <xsd:element name="PIN" type="xsd:int" minOccurs="0" />
    <xsd:element name="error" type="tns:error" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="registerUser"/>
    <xsd:complexType name="registerUserRequestType">
    <xsd:sequence>
    <xsd:element name="MSISDN" type="xsd:int" minOccurs="0"/>
    <xsd:element name="password" type="xsd:string" minOccurs="0"/>
    <xsd:element name="timestamp" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="source" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="registerUserResponseType">
    <xsd:sequence>
    <xsd:element name="resultCode" type="xsd:int" minOccurs="0"/>
    <xsd:element name="error" type="tns:error" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="authenticateUser"/>
    <xsd:complexType name="authenticateUserRequestType">
    <xsd:sequence>
    <xsd:element name="MSISDN" type="xsd:int" minOccurs="0"/>
    <xsd:element name="password" type="xsd:string" minOccurs="0"/>
    <xsd:element name="timestamp" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="source" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="authenticateUserResponseType">
    <xsd:sequence>
    <xsd:element name="resultCode" type="xsd:int" minOccurs="0" />
    <xsd:element name="error" type="tns:error" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="resetPassword"/>
    <xsd:complexType name="resetPasswordRequestType">
    <xsd:sequence>
    <xsd:element name="MSISDN" type="xsd:int" minOccurs="0"/>
    <xsd:element name="operation" type="xsd:string" minOccurs="0"/>
    <xsd:element name="oldpassword" type="xsd:string" minOccurs="0"/>
    <xsd:element name="password" type="xsd:string" minOccurs="0"/>
    <xsd:element name="timestamp" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="source" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="resetPasswordResponseType">
    <xsd:sequence>
    <xsd:element name="resultCode" type="xsd:int" minOccurs="0"/>
    <xsd:element name="error" type="tns:error" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="deleteUser"/>
    <xsd:complexType name="deleteUserRequestType">
    <xsd:sequence>
    <xsd:element name="MSISDN" type="xsd:int" minOccurs="0"/>
    <xsd:element name="timestamp" type="xsd:dateTime" minOccurs="0"/>
    <xsd:element name="source" type="xsd:string" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="deleteUserResponseType">
    <xsd:sequence>
    <xsd:element name="resultCode" type="xsd:int" minOccurs="0"/>
    <xsd:element name="error" type="tns:error" minOccurs="0"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="preRegistrationCheck" xmlns:tns="http://www.viva.com.bh/vivaportal"
    type="tns:preRegistrationCheckRequestType"/>
    <xsd:element name="preRegistrationCheckResponse"
    type="tns:preRegistrationCheckResponseType"/>
    <xsd:element name="prePasswordResetCheck"
    type="tns:prePasswordResetCheckRequestType"/>
    <xsd:element name="prePasswordResetCheckResponse"
    type="tns:prePasswordResetCheckResponseType"/>
    <xsd:element name="registerUser" type="tns:registerUserRequestType"/>
    <xsd:element name="registerUserResponse"
    type="tns:registerUserResponseType"/>
    <xsd:element name="authenticateUser" type="tns:authenticateUserRequestType"/>
    <xsd:element name="authenticateUserResponse"
    type="tns:authenticateUserResponseType"/>
    <xsd:element name="resetPassword" type="tns:resetPasswordRequestType"/>
    <xsd:element name="resetPasswordResponse"
    type="tns:resetPasswordResponseType"/>
    <xsd:element name="deleteUser" type="tns:deleteUserRequestType"/>
    <xsd:element name="deleteUserResponse" type="tns:deleteUserResponseType"/>
    </xsd:schema>
    -----------------------------------------------end-------------------------------------------

    Anybody has solution on this? I too getting similar exception when Callingl a web service with soapenc:arrayType from BPEL
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>exception on JaxRpc invoke: trailing block elements must have an id attribute</summary>
    </part></bindingFault>
    This is what the documentation says. Any body has steps or examples
    4.13.4 SOAP-Encoded Arrays Not Supported
    Oracle BPEL Process Manager does not support SOAP-encoded arrays (soapenc:arrayType).
    Use the following workarounds:
    · Call a service with soapenc:arrayType from BPEL, but construct the XML message more manually in the BPEL code. This enables you to avoid changing or wrapping the service. However, each time you want to call that service from BPEL, you must take extra steps.
    Thanks
    N Reddy

  • Exception on JaxRpc invoke: trailing block elements must have an id attribu

    Hi Friends,
    Can anyone help me on this
    When i invoke the webservice i am getting the following soap fault error
    <messages><input><GetAccountRequest><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="in0"><in0 xmlns="" xmlns:def="http://transfer.webservice.voyager.bcgi.net" xsi:type="def:ServiceContext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <activityTraceKey>4000004</activityTraceKey>
    <errorCode>4000004</errorCode>
    <errorDescription>bcgirose</errorDescription>
    <successStatus>true</successStatus>
    <timestamp>2007-09-10T01:34:29.525+05:30</timestamp>
    <txTraceUuid>bcgirose</txTraceUuid>
    <userName>bcgirose</userName>
    <carrierId>62000</carrierId>
    <sessionId>8</sessionId>
    <userAccountName>bcgirose</userAccountName>
    <userAccountPassword>bcgirose</userAccountPassword>
    </in0>
    </part><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="in1"><in1 xmlns="" xmlns:def="http://account.impl.transfer.webservice.voyager.bcgi.net" xsi:type="def:AccountIdentifierData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <activityTraceKey>4000004</activityTraceKey>
    <errorCode>4000004</errorCode>
    <errorDescription>bcgirose</errorDescription>
    <successStatus>true</successStatus>
    <timestamp>2007-09-10T01:34:29.525+05:30</timestamp>
    <txTraceUuid>bcgirose</txTraceUuid>
    <userName>bcgirose</userName>
    <accountId>4000004</accountId>
    </in1>
    </part></GetAccountRequest>
    </input><fault><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>exception on JaxRpc invoke: trailing block elements must have an id attribute</summary>
    </part></remoteFault></fault></messages>

    Check the schema definitions for the responses to make sure they are correct.
    I have found that this 'trailing block elements must have an id attribute' occurs at runtime if an element is defined as maxOccurs="1" yet more than one of these elements are returned in the response.
    Put simply, the WSDL and XSD definitions does not match service implementation. The generated proxy class bases its deserialization logic on the WSDL & XSD and if it comes across more than one element in the response, when it is only expecting one, this exception is thrown.
    HTH,
    Peter
    http://soastation.blogspot.com

  • Help in retrieving the element attribute name and value..

    Hi have to retrieve the attribute name and value from the element.....
    requirement is like this
    <ws:GetRightNowProductViewByDivisionResponse xmlns:ws="http://ws.sage.co.uk/">
    <ws:GetRightNowProductViewByDivisionResult ProductID=" " RightNowProductView=""/>
    </ws:GetRightNowProductViewByDivisionResponse>
    i should get all the element attbutes names as attributes in above mentioned format ..using xquery...
    here is the respone ....
    <sage:sageRequestResponse xmlns:sage="http://www.sage.com">
    <env:EaiEnvelope xmlns:env="http://www.sage.com/Envelope">
    <env:Domain>string</env:Domain>
    <env:Service>RightNowBroker</env:Service>
    <env:UserId>string</env:UserId>
    <env:OperationName>GetRightNowProductViewByDivision</env:OperationName>
    <env:Payload>
    <ws:GetRightNowProductViewByDivisionResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.sage.co.uk/">
    <xs:schema id="NewDataSet" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="RightNowProductView" msdata:UseCurrentLocale="true">
    <xs:complexType>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element name="RightNowProductView">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="ProductId" type="xs:short"/>
    <xs:element name="Product" minOccurs="0">
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="4000"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
    <xs:selector xpath=".//RightNowProductView"/>
    <xs:field xpath="ProductId"/>
    </xs:unique>
    </xs:element>
    </xs:schema>
    <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"/>
    </ws:GetRightNowProductViewByDivisionResult>
    </env:Payload>
    </env:EaiEnvelope>
    </sage:sageRequestResponse>

    Hi
    Just as an aside to the comments above, a scenario we see occasionally is where a desk provides an internal function (e.g. a helpdesk) and you really just want to get the name display (as seen on the handsets) onto the CAD display.
    You can do this by  doing a reverse lookup over HTTP against CUCM. There are a number of posts around, these should get you started :
    https://supportforums.cisco.com/thread/2065114
    https://supportforums.cisco.com/message/3024617
    A couple of notes:
    - It looks up against the directory, NOT the actual calling line. So you can add stuff to the directory to get external callers to show up by name, but should expect the unexpected when you have shared lines (e.g. multipel directory entries with one tel number for whatever reason)
    - If you want to do different lookups (i.e. get names back in a different format, get the actual line display name from CUCM, or lookup elsewhere) then you would need to either:
    1) Do it via SOAP or another technology from the UCCX script engine
    2) Put in a small external web service to do the lookups and allow UCCX to query via simple HTTP
    3) Use a DB for the numbers so you can read/write to it from UCCX and regularly update the data from wherever you like
    Regards
    Aaron HarrisonPrincipal Engineer at Logicalis UK
    Please rate helpful posts...

  • How do i fix the "web form must capture customer name and email address" error?

    Hi all,
    I have a webform that is submitting securely to the bc servers. I get the response:
    {"SystemMessage": { "success": False, "message": "ERROR: An error occurred. Your web form must capture customer name and email address. Please fix this issue and re-insert your web form on your web page." }}
    I have verified that the "FirstName","LastName","EmailAddress" are actually gettting sent with their corresponding values. I can't seem to figure out why i keep getting this error. Can someone please lend a helping hand?!? Thanks guys... here's my code:
    var rAction = 'https://site.worldsecuresystems.com/FormProcessv2.aspx?WebFormID=85886&OID={module_oid}&OTYPE={module_otype}&EID={module_eid}&CID={module_cid}&CC={module_urlcountryc ode}&Referrer={module_siteurl,true,true}&JSON=1';
    var rData = 'FirstName='+escape(fName.val())+'&LastName='+escape(lName.val())+'&EmailAddress='+escape (email.val())+'&Username='+escape(username.val())+'&Password='+escape(passwd.val())+'&Pass wordConfirm='+escape(passwd2.val())+'&BillingAddress='+escape(baddress.val())+'&BillingCit y='+escape(bcity.val())+'&BillingState='+escape(bstate.val())+'&BillingZip='+escape(bzip.v al())+'&PaymentMethodType='+escape(paymentMethodType)+'&CardName='+escape(cName.val())+'&C ardNumber='+escape(cNum.val())+'&CardExpiryMonth='+escape(expMonth)+'&CardExpiryYear='+esc ape(expYear)+'&CardType='+escape(cType)+'&CardCCV='+escape(ccv.val())
    $.ajax({
    type: 'POST',
    url: rAction,
    data: rData,
    success: function(msg){
    console.log('success');
    $('#result').html(msg);
    error: function(msg){
    console.log('error');
    $('#result').html(msg);

    Ok -- after testing this out a little on my own I think it must have to do with not properly serialzing the data you are passing in the ajax function.  In the example I linked to earlier they are just serialzing the form data and it works because it converts the data in the form's input fields to URL encoded notation.
    If you aren't using an actual form on your site to mimick the example I linked to then when building your "rData" string instead of using the "escape" function for each of the parameter values, you should be using the "encodeURIComponent" function instead which instead of escaping characters will convert it to URL encoded notation.  That's probably your issue. Here's more about encodeURIComponent(): http://www.w3schools.com/jsref/jsref_encodeURIComponent.asp
    Try this with the rData variable instead:
    var rData = 'FirstName='+encodeURIComponent(fName.val())+'&LastName='+encodeURIComponent(lName.val()) +'&EmailAddress='+encodeURIComponent(email.val())+'&Username='+encodeURIComponent(username .val())+'&Password='+encodeURIComponent(passwd.val())+'&PasswordConfirm='+encodeURICompone nt(passwd2.val())+'&BillingAddress='+encodeURIComponent(baddress.val())+'&BillingCity='+en codeURIComponent(bcity.val())+'&BillingState='+encodeURIComponent(bstate.val())+'&BillingZ ip='+encodeURIComponent(bzip.val())+'&PaymentMethodType='+encodeURIComponent(paymentMethod Type)+'&CardName='+encodeURIComponent(cName.val())+'&CardNumber='+encodeURIComponent(cNum. val())+'&CardExpiryMonth='+encodeURIComponent(expMonth)+'&CardExpiryYear='+encodeURICompon ent(expYear)+'&CardType='+encodeURIComponent(cType)+'&CardCCV='+encodeURIComponent(ccv.val ())

  • Extract cluster element names and values automatically

    Dear Labview forum,
    I would like to extract cluster element names and values automatically
    without prior knowledge of the cluster element size or contents.
    I am able to extract the names but have some trouble with the values.  (see attached VI)
    I wish to write each the cluster element name and value in a string, and then write the string to a new line in a file.
    Regards,
    Jamie
    Using Labview version 8.0
    Attachments:
    extract cluster element names and values automatically.vi ‏14 KB

    This can become arbitrarily complex, because a cluster can contain many types of data, even other clusters, arrays, typedefs, etc. So getting a "value" of an element is not as easy as you might think. There is a reason you get a variant.
    If all cluster elements are simple numerics you can use "variant to data" with the correct type. The attached shows a few possibilities. Modify as needed.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    extract_cluster_element_names_and_values_automaticallyMOD.vi ‏23 KB

  • All I know is my Skype name, and the e-mail is no ...

    I created an account for my father in law a long time ago, so that hencould talk to his grandchildren. This worked fine, until he got a new computer, and we should log in again. The password is not what we thought it would be, and we don't remember which mail it is registered on - but suspect this mail is no longer in use (new ISP - new mail). All we know is the skype name, and we don't have a way to recover the password. Is it possible to solve this in a good manner? Btw. The skype name is firstname.lastname, and he is the only one in the world (definitely) to have this name. Should not be much chance of misuse of the name... Any ideas?

    if you don't have a purchase history, it is not possible to request for a new password for that account. However, if it will remain inactive for at least 6 months I think, it will be tagged as inactive and will be removed from search results.
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • ERROR: Your web form must capture customer name and email address.

    Hi,
    I keep receiving this error message when trying to checkout and submit a payment.
    ERROR: An error occurred. Your web form must capture customer name and email address. Please fix this issue and re-insert your web form on your web page.
    The strange thing is it's only happening in chrome. It works perfectly in IE and firefox, the form submits and takes me to the order confirmation page. I've tested it on multiple PCs so it's definitely a chrome issue. Does anyone have any advice as to what could be causing this issue with chrome?
    Thanks,
    Pete

    Check your eCommerce web form in the admin has the ID - 211729
    This is what the form ID is, if you have deleted it and made a new one it will not Marry up
    The things you normally look for with this error is The first name and last name along with email fields have the right ID and name parameters on the input. The javascript is picking those up so it looks like that is working.
    So next is the form in the admin marrying up with the form on the page or in this case the Registration Buy layout.

  • Muse CC thinks that ALL of my assets have been modified and wants to "convert" my site.

    I opened up my muse site and somehow Muse CC thinks that ALL of my assets have been modified and wants to "convert" my site. It makes me a bit worried.
    Here's what I've done since opening the site without a problem:
    I used the in-browser editing feature to change simple numbers on a single page - the home page - I got the regular notice to review and update - that worked with no problems.
    I have added several Muse-Themes widgets/templates/tools
    I've had a computer crash that required a hard re-boot to correct, Muse and this site were running at the time. (now that I think about it, this might be the problem)
    I don't recall whether Muse CC has updated in the last week (since it worked correctly for me)
    I run anti-malware software and virus protection - both of which run in realtime scanning internet connection, file downloads, etc.
    Can someone assure me that everything is OK - that sometimes this happens?
    My next step as I leave here is to login to my site and check file sizes to see if there's a significant difference...yes, I'm worried about viruses - I have great software but all software can be overcome by determined (and annoying) people.
    thanks for your attention to this and hopefully everything is just fine if a bit glitchy. I can work with glitchy :-)

    Thank you Akshay for replying so quickly. Lots of work to do then on my part.
    Is there a list of CC apps that have been updated to their 2014 versions, so that I can check that I have all the updates?
    Many thanks,
    David Perkins
    (Brighton, UK)

  • Good morning to all of you I have A mac and I did the mistake of upgrading my Lightroom 5.4 to 5.6 Now I can't import anything it says "Could not find namespace: AgCreativeCloudUtils" Could anyone help me resolve this problem?  Should I uninstall the prog

    Good morning to all of you
    I have A mac and I did the mistake of upgrading my Lightroom 5.4 to 5.6 Now I can't import anything it says "Could not find namespace: AgCreativeCloudUtils"
    Could anyone help me resolve this problem?
    Should I uninstall the program and reinstall it
    Thank you so much

    I asked because an awful lot of people have recently been confused between downloading the Cloud and the perpetual versions of Lr - although I'm not automatically assuming your'e guilty of this - and can't understand why their serial no won't unlock their new software.
    If the wrong version has been installed, then it must be uninstalled and the right one downloaded.

  • How to get all property names and values of an bean instance at runtime?

    How can I get all property names and values of an bean instance at runtime?
    (The class of the bean instance is dynamic and I can not know before I write the code .)

    Look at Class. It has a way to get at all public methods and attributes.
    If you need to get to private attributes you can do what the Introspector does and expect the methods to follow the Bean pattern and pull the attributes out based upon that. Privates are all hidden from direct access but through the Bean Pattern they can be figured out.

  • How to get the name and value of an attribute on a node/element that is not a child

    Hello,
    Can someone shed some wisdom on how I can compare 2 xml nodes for differences.
    My main challenge is I need to use the attributes/values of 'ProductDescription' and 'Features' as 'key' to identify the same node in
    another doc with the same layout, but different content.
    I am having trouble getting the name of the attribute on the node, 'ProductDescription' and 'Features'.  I can only seem to get the node names, but not the attributes on the node.  I need the name, because it can be different from doc to doc, so
    I can't hardcode this.
    Can someone please help with how to retrieve an attribute name/value on a node that is not a child.  Here's an example of what
    my xml looks like:
    DECLARE
    @myDoc1 xml
    ,@mydoc2 xml
    DECLARE
    @ProdID int
    SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <features featureID = "2" featureName = "seat">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>
    SET @myDoc2 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>2 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <features featureID = "2" featureName = "wheel">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>
    I need to compare the attributes of 'ProductDescription' and 'Features' from @mydoc1 against @mydoc2 to see if they are the same based on those 2 nodes first.  If they are, then i want to show the difference in the child elements. 
    This will eventually be an outer join to give me the differences betw the 2 docs based on those key values (node attributes).
    I used node('//*') for the path, and value('local-name(../.)', 'varchar(50)') as element
    ,value('.[not(@xsi:nil = "true")]','VARCHAR(255)') AS new_value
    ...etc...
    but that only gives me the node names, and the child elements.  It does not give me back the attribute names and values from the node itself.
    Thanks in advance for your help.
    cee

    Are you looking for something like this:
    DECLARE @myDoc1 xml
    SET @myDoc1 ='<ProductDescription ProductID="1" ProductName="Road Bike">
    <Features  featureID  = "1" featureName = "body">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>3 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    <Features featureID = "2" featureName = "seat">
      <Warranty>1 year parts and labor</Warranty>
      <Maintenance>2 year parts and labor extended maintenance is available</Maintenance>
    </Features>
    </ProductDescription>'
    SELECT T.c.value('local-name(.)', 'nvarchar(50)') AS name,
           T.c.value('.', 'nvarchar(50)')  AS value
    FROM   @myDoc1.nodes('ProductDescription/@*') AS T(c)
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How do you get a list of your contacts nick names and their phone numbers on line and print them out?

    How do you get a list of your contacts nick names and their phone numbers on line and print them out?  I've been trying to figure out how to get the list to print out but I can't even find a complete list to view on Verizon's web site.  Does anyone know how to do this?

    Log into your online account. In the, 'I want to', box type, Manage Contacts.
    Place your cursor over any contact, a pop screen will appear with the option to print your contacts

Maybe you are looking for