简体   繁体   English

XML 解析而不使用 JavaScript 中的 DOMParser

[英]XML parsing without using DOMParser in JavaScript

I would like to parse a xlm feed into an Object in Javascript without using a DOMParser.我想在不使用 DOMParser 的情况下将 xlm 提要解析为 Javascript 中的 Object。

The reason I can't use a DOMParser is that I am in Airtable Automations, which does not allow importing/installing anything, so I can't use external objects.我不能使用 DOMParser 的原因是我在 Airtable Automations 中,它不允许导入/安装任何东西,所以我不能使用外部对象。

I know there is an xlm import feature in Airtable but I can't use this because I want to automate this, and it would not allow automation.我知道 Airtable 中有一个 xlm 导入功能,但我不能使用它,因为我想自动化它,它不允许自动化。

I know Airtable apps allows library imports so that is my next choice, but I would prefer to work in Airtable automations because it will be easier.我知道 Airtable 应用程序允许库导入,所以这是我的下一个选择,但我更喜欢在 Airtable 自动化中工作,因为它会更容易。

The options it seems like I have are, copying an open source function that could parse my xlm, or using an external api which would parse it.我似乎拥有的选项是,复制可以解析我的 xlm 的开源 function,或者使用可以解析它的外部 api。

I have not found any APIs that do this and I found one function, but it got my xlm incorrectly.我没有找到任何执行此操作的 API,我找到了一个 function,但它错误地获取了我的 xlm。

My question is, does anyone know a (reliable) (basic) function that could do this, or any APIs?我的问题是,有没有人知道可以做到这一点的(可靠的)(基本的)function 或任何 API? I would also welcome any thoughts, such as, "this is not possible to do" or that I need to customize my own one.我也欢迎任何想法,例如“这是不可能的”或我需要定制自己的想法。 Thank you very much.非常感谢。

Decided not to use airtable automations and instead do this work locally.决定不使用 airtable 自动化,而是在本地完成这项工作。 Thanks everyone感谢大家

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM