Comments (2)
Validator is quite simple to use as it doesn't require any attribute. What I doubt on single quote and double quotes. Let me check
from fast-xml-parser.
It works completely fine for me
var xmlData = '<?xml version="1.0" encoding="UTF-8"?>'
+ '<!DOCTYPE daily_western_horo_fr>'
+ '<daily_western_horo_fr>'
+ ' <date valeur="2018-01-24">'
+ ' <signe valeur="vierge">'
+ ' <amour>La vie de couple s\'accompagne de tâches pas toujours très agréables à réaliser. Aujourd\'hui, cela ne vous gênera pas. Qu\'il s\'agisse de ménage, de cuisine ou de gestion du foyer, vous trouverez cela normal et serez heureux de le faire, car vous vous sentez responsable de votre petit monde. Vous vous montrerez adorable quoi qu\'il arrive.</amour>'
+ ' <argent>Ah ! Les imprévus ! Que vous n\'aimez pas ça ! Et pourtant, c\'est ce qui risque d\'arriver aujourd\'hui, en raison d\'influx dissonants Lune/Uranus dans le secteur concerné. Rassurez-vous, votre gestion impeccable devrait vous permettre d\'assurer sans problème.</argent>'
+ ' <sante>Vous canaliserez à merveille votre énergie. Votre esprit est pratique et vous possédez un excellent sens de l\'organisation. Tout roule !</sante>'
+ ' <travail>Toujours soucieux de rendre un travail impeccable, vous serez en mode perfection. Comme la perfection n\'existe pas, vous essaierez au moins de vous en rapprocher le plus possible. Vous perdrez du temps pour des détails que personne ne remarquera...</travail>'
+ ' <famille_foyer>Vous serez heureux de partager de petits plaisirs simples et spontanés avec les enfants comme avec les plus grands. L\'ambiance se fera très complice.</famille_foyer>'
+ ' <vie_sociale>Vos amis seront tentés de faire appel à vos capacités de jugement. Ils savent que vous ne laissez rien au hasard et que lorsque vous affirmez quelque chose, ils peuvent vous faire confiance.</vie_sociale>'
+ ' <citation>« L\'absence est le plus grand des maux. » La Fontaine</citation>'
+ ' <nombre_chance>23</nombre_chance>'
+ ' <clin_doeil>Vous serez très ouvert à de nouvelles sensations, mais en aurez-vous l\'opportunité ? Si vous n\'êtes pas très clair sur vos intentions, vous passerez à côté d\'une occasion.</clin_doeil>'
+ ' </signe>'
+ ' </date>'
+ '</daily_western_horo_fr>';
var result = validator.validate(xmlData);
expect(result).toBe(true);
from fast-xml-parser.
Related Issues (20)
- Wrong behaviour with "arrayNodeName" and "oneListGroup" from XMLBuilder HOT 2
- Validation of invalid XML declarations HOT 6
- Validation of multiple root elements
- Parsing an invalid XML element
- isArray behavior on missing/empty tags HOT 1
- TypeError: Cannot read properties of undefined (reading 'tagName') when parsing closing tag without an opening tag at the start of XML document HOT 3
- V3 to V4 migration guide? HOT 5
- Circular Dependency Error While trying to validate xml HOT 3
- Online demo does not handle DOCTYPE correctly and gives an error HOT 2
- Regex Injection Via Doctype Entities HOT 4
- unreliable for parsing html HOT 2
- Introduce isObject option for unpaired tags HOT 2
- Parsing of Empty Tags HOT 4
- Entities are being processed in CDATA sections HOT 1
- Attribute in oneListGroup is not parsed correctly HOT 1
- All special characters are not correctly parsed HOT 4
- Ability to read & write DOCTYPE information HOT 2
- parser malfunctions when textNodeName is the same as a tag name HOT 8
- Node attributes get lost on XML parsing HOT 1
- Decimal point is not preserved after parsed to json. HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fast-xml-parser.