首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Azure逻辑应用程序以单行方式输出XML

Azure逻辑应用程序以单行方式输出XML
EN

Stack Overflow用户
提问于 2021-09-09 09:36:04
回答 2查看 277关注 0票数 0

我正在尝试将CSV转换为XML,当我确保XSLT1.0包含indent="yes"时,在Visual中测试映射文件时,它工作得非常好。但是,由于某种原因,当我重复我的Azure逻辑应用程序中的步骤时,所有内容都会导出到一行:

代码语言:javascript
复制
<?xml version="1.0" encoding="utf-8"?><enfinity xsi:schemaLocation="http://www.fakewebsite.com/xml/ns/enfinity/7.1/bc_pricing/impex bc_pricing.xsd" major="6" minor="1" family="enfinity" branch="enterprise" build="build" xmlns="http://www.fakewebsite.com/xml/ns/enfinity/7.1/bc_pricing/impex" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dt="http://www.fakewebsite.com/xml/ns/enfinity/6.5/core/impex-dt"><product-price-list id="DEMarkdown" priceType="ES_SalePrice" import-mode="UPDATE"><display-name>DE Markdown</display-name><description /><enabled>true</enabled><priority>1</priority><target-groups><customer-segments><customer-segment id="Everyone" repository-id="WhiteStuff-DE-Anonymous" /><customer-segment id="IG_RegisteredUsers" repository-id="WhiteStuff-DE-Anonymous" /></customer-segments></target-groups><product-price-list-entry sku="433493126" import-mode="REPLACE"><price-scale-table type-code="1" currency="EUR"><valid-from>2021-07-06T00:00:00+00:00</valid-from><valid-to>2099-07-13T00:00:00+00:00</valid-to><price-scale-entries><fixed-price-entry quantity="1" unit=""><value>44.95</value></fixed-price-entry></price-scale-entries></price-scale-table><price-scale-table type-code="1" currency="GBP"><valid-from>2021-07-06T00:00:00+00:00</valid-from><valid-to>2099-07-13T00:00:00+00:00</valid-to><price-scale-entries><fixed-price-entry quantity="1" unit=""><value>39.50</value></fixed-price-entry></price-scale-entries></price-scale-table></product-price-list-entry></product-price-list></enfinity>
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2021-09-28 12:25:36

对于那些感兴趣的人,我在Logic中找到了一个设置,只需选择Apply XSLT输出属性,就这样,也不需要验证!

票数 0
EN

Stack Overflow用户

发布于 2021-09-16 04:14:30

我有两种方法

WAY-1

您可以在将内容解析为正确格式的过程之前使用XML Validation连接器。

WAY-2

仅为查看目的,您可以使用Postman执行请求响应方法,然后使用XML格式来实现您的需求。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69115740

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档