microsoft / microsoft/XmlNotepad

Add strings to existing text, using Xpath

Open
#256 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
1.2k
Forks
240
PR merge metrics
No merged PRs in 30d

Description

(Seem to be similar to #53 )

I want to

  • search for a text with Xpath and
  • modify the found text with a new string as prefix, e.g. "hello "

Searching would be done with Xpath, e.g. with "/PLAY/ACT/SCENE[1]/SPEECH[1]/SPEAKER/text()" for Hamlet.xml.
But how to add the prefix to the found text?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing XPath search and editing behavior, and compare this request with issue #53. Use the XPath example against Hamlet.xml to determine how a selected text node should be updated with a prefix, then define how the behavior should be verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.