Quantcast
Channel: SCN : Discussion List - SAP BusinessObjects Design Studio
Viewing all articles
Browse latest Browse all 4041

Issue with the xmlns="http://www.sap.com/bi/zen/sdk" on contribution.xml file

$
0
0

Hello guys, long time I haven't posted under DesignStudio space on the SCN.

 

Since few weeks, I have a problem that comes from the XML contribution file.

 

Let me add a little bit of context.

I have an automated process (Jenkins) that builds a complete extension for DesignStudio.

The process relies of Grunt in order to modify/add/remove files.

 

One of the grunt task is xmlpoke, meant to modify the contribution.xml on the fly using xpath.

For example, if I want to modify the value of the propertySheetPath, the xpath is /sdkExtension/component/@propertySheetPath

 

But since few weeks, the xmlpoke task is always failing (no error, but no xpath is found in the contribution file).

I've taken some time to take a look today, and found the root of the issue.

 

In the <sdkExtension xmlns="http://www.sap.com/bi/zen/sdk" id="com.my.extension.id" title="MyExt" version="1.0" vendor="Me">,

 

the xmlns="http://www.sap.com/bi/zen/sdk" is broken and causes the xmlpoke tasks to fail.

 

You can easily reproduce that here :

 

http://codebeautify.org/Xpath-Tester

 

Copy and paste this

 

<?xml version="1.0" encoding="UTF-8"?>

<sdkExtension xmlns="http://www.sap.com/bi/zen/sdk" id="com.my.extension.id" title="MyExt" version="1.0" vendor="Me">

</sdkExtension>

 

and search for the xpath /sdkExtension

 

It will say !No Match

 

Now remove the xmlns="http://www.sap.com/bi/zen/sdk" property and try again, it works.


This is the reason my xpath are all failing because they do not match anything in the file due to the xmlns property issue.

 

I don't know exactly what is suppose to do http://www.sap.com/bi/zen/sdk, but when typing it in a browser it leads to an error page.


Is this something known on SAP side? It was working before because all my extensions have been generated through my automated process without an issue until now.

This property seems mandatory.


Br,

Vincent


Viewing all articles
Browse latest Browse all 4041

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>