Options

Defining Node name in XML Port

marvinqmarvinq Member Posts: 69
edited 2011-04-26 in NAV Three Tier
Hi,

I have got a XML file with a node called <cbc:UBLVersionID>, how can I define this as a node in XMLPorts?

Writing cbc:UBLVersionID does not seem to work.

Comments

  • Options
    marvinqmarvinq Member Posts: 69
    If I rename my node in the XML file to <UBLVersionID> (without cbc:) then everything works when defining UBLVersionID as node name in NAV.

    This is of course not a solution. Any ideas why it does not work?
  • Options
    ara3nara3n Member Posts: 9,255
    Hello

    You need to remove all the namespaces out of your xml file. There are many post on this on how to remove these prefixes and then process the xml file.

    You process will be like this. Once you get the file you call this function that removes the namespaces then pass the new xmlfile into your xmlport.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Options
    pdjpdj Member Posts: 643
    I guess marvinq needs to export the file...
    In that case you could get inspiration from the Danish hotfix providing OIOUBL support... 8)
    Regards
    Peter
  • Options
    marvinqmarvinq Member Posts: 69
    No, I need to import.

    I get the idea, just seems odd that it is necessary to remove the namespaces manually.

    Thanks for advice.
Sign In or Register to comment.