open-index/open-npm huggingface dataset:
npm package: @ismail-elkorchi/xml-parser
Description: Deterministic, agent-first XML parser.
Latest version: 0.1.1

# @ismail-elkorchi/xml-parser

Deterministic XML parsing and utility APIs for automation across Node, Deno, Bun, and browser smoke paths.

No runtime dependencies: this package ships with zero runtime dependencies.

## When To Use

- You need deterministic XML parse and serialization behavior.
- You need explicit budget controls for untrusted XML.
- You need canonicalization, hashing, and replay utilities in one package.

## When Not To Use

- You need a full XSD engine integrated into parse-time behavior.
- You need browser DOM runtime APIs.
- You need permissive DTD/external-entity processing.

## Install

```bash
npm install @ismail-elkorchi/xml-parser
```

```bash
deno add jsr:@ismail-elkorchi/xml-parser
```

## Import

```ts
import { parseXml } from "@ismail-elkorchi/xml-parser";
```

```txt
import { parseXml } from "jsr:@ismail-elkorchi/xml-parser";
```

## Copy/Paste Examples

### Example 1: Parse XML

```ts
import { parseXml } from "@ismail-elkorchi/xml-parser";

const document = parseXml("<root><item/></root>");
console.log(document.kind);
```

### Example 2: Parse streaming XML

```ts
import { parseXmlStream } from "@ismail-elkorchi/xml-parser";

const stream = new ReadableStream({
  start(controller) {
    controller.enqueue(new TextEncoder().encode("<root><item/></root>"));
    controller.close();
  }
});

const document = await parseXmlStream(stream, { budgets: { maxStreamBytes: 4096 } });
console.log(document.kind);
```

### Example 3: Query XML elements

```ts
import { listElementsByQName, parseXml } from "@ismail-elkorchi/xml-parser";

const document = parseXml("<root><item/><item/></root>");
console.log(listElementsByQName(document, "item").length);
```

### Example 4: Validate profile

```ts
import { parseXml, validateXmlProfile } from "@ismail-elkorchi/xml-parser";

const document = parseXml("<invoice><line/></invoice>");
console.log(validateXmlProfile(document, { expectedRootQName: "invoice", requiredElementQNames: ["line"] }).ok);
```

Run packaged examples:

```bash
npm run examples:run
```

## Compatibility

Runtime compatibility matrix:

| Runtime | Status |
| --- | --- |
| Node.js | Supported |
| Deno | Supported |
| Bun | Supported |
| Browser (evergreen) | Supported |

## Security and Safety Notes

XML parsing is not a trust boundary by itself.
- Keep strict mode enabled.
- Configure parse budgets for untrusted input.
- Validate and sanitize at the application boundary.

## Documentation

- [Docs index](./docs/index.md)
- [First parse success tutorial](./docs/tutorial/first-parse.md)
- [Options reference](./docs/reference/options.md)
npm package: @ismail424/svelte-formly
Description: <p align="center">   <img width="100%" height="300" src="./logo.png" alt="Svelte Formly" /> </p>
Author: Kamal Sahmoud
Latest version: 2.0.21

<p align="center">
  <img width="100%" height="300" src="./logo.png" alt="Svelte Formly" />
</p>

# Svelte Formly

by [@kamalkech](https://github.com/kamalkech)

[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com) [![CircleCI](https://circleci.com/gh/beyonk-adventures/svelte-component-livereload-template.svg?style=shield)](https://circleci.com/gh/beyonk-adventures/svelte-component-livereload-template) [![svelte-v3](https://img.shields.io/badge/svelte-v3-blueviolet.svg)](https://svelte.dev)

## Introduction

- ⚡️ Generate dynamic and reactive forms.
- 😍 Easy to extend with custom field type, custom validation.

## Documentation

[Link Documentation](https://svelte.formly-js.com/)

## Quick Installation

```shell
npm install svelte-formly
```

## Usage

```typescript
<script lang="ts">
  import { Formly, type IField } from 'svelte-formly';

  const form_name = 'formly_usage';
  const fields: IField[] = [
    {
      type: 'input', // required
      name: 'firstname', // required
      attributes: {
        type: 'text',
        id: 'firstname', // required
        classes: ['form-control'],
        placeholder: 'Tap your first name'
      },
      rules: ['required', 'min:3', 'max:10'],
      messages: {
        required: 'The firstname is required',
        min: 'Your firstname is too short min=3',
        max: 'Your firstname is too long max=10'
      }
    },
    {
      type: 'input', // required
      name: 'password', // required
      attributes: {
        type: 'password',
        id: 'password', // required
        classes: ['form-control'],
        placeholder: 'Tap your password',
        autocomplete: 'off'
      },
      rules: ['required', 'min:6', 'max:10'],
      messages: {
        required: 'The password is required',
        min: 'Your password is too short min=6',
        max: 'Your password is too long max=10'
      }
    }
  ];

  const onSubmit = ({ detail }: any) => {
    console.log('values:', detail);
  };
</script>

<Formly {fields} {form_name} on:submit={onSubmit} />
```